pipcet opened a new issue, #16237: URL: https://github.com/apache/nuttx/issues/16237
### 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 - [x] I have verified before submitting the report. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org