-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Arch: xtensaIssues related to the Xtensa architectureIssues related to the Xtensa architectureArea: File SystemFile System issuesFile System issuesOS: LinuxIssues related to Linux (building system, etc)Issues related to Linux (building system, etc)Type: BugSomething isn't workingSomething isn't working
Description
Description / Steps to reproduce the issue
The procfs code behaves strangely when dealing with a path which is a prefix of a valid procfs entry: changing directory to such a prefix works rather than failing, and the apparent entries correspond to the remaining path, with one byte omitted.
In this configuration, /proc/net exists, but /proc/n doesn't:
nsh> cd /proc/n
nsh> ls
/proc/n:
t
t/
nsh>
I would have expected behavior analogous to:
nsh> cd /proc/x
nsh: cd: chdir failed: 2
nsh>
On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
6.6.21
NuttX Version
master
Issue Architecture
[Arch: xtensa]
Issue Area
[Area: File System]
Host information
No response
Verification
- I have verified before submitting the report.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Arch: xtensaIssues related to the Xtensa architectureIssues related to the Xtensa architectureArea: File SystemFile System issuesFile System issuesOS: LinuxIssues related to Linux (building system, etc)Issues related to Linux (building system, etc)Type: BugSomething isn't workingSomething isn't working