nuttx/fs/inode
Alan Carvalho de Assis c1891e07c9 fs: resolve a trailing lone '.' path component
inode_nextname() already skipped a '.' segment mid-path (e.g. "./foo"),
but only checked for a '/' right after it -- a path ending in a bare
'.' (e.g. "/foo/.", or "." itself once AT_FDCWD resolution prepends
$PWD) fell through and was looked up as a literal child named ".",
which no real node is ever named, failing with ENOENT.

This broke every "operate on the current directory" idiom relative
paths rely on: bare `ls`, `stat .`, `cd .`, etc., all failed outright
even though the equivalent absolute path worked fine. Found while
testing the Toybox port's interactive REPL, but this is generic VFS
path resolution, not Toybox-specific.

Signed-off-by: Alan C. Assis <acassis@gmail.com>
Assisted-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-14 10:20:52 +08:00
..
CMakeLists.txt fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_files.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_foreachinode.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_inode.c sched: add supplementary group IDs (setgroups/getgroups/initgroups) 2026-08-12 16:06:03 -03:00
fs_inodeaddref.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_inodebasename.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_inodefind.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_inodefree.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_inodegetpath.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_inoderelease.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_inoderemove.c fs: enforce path search and unify inode permission helpers 2026-08-02 18:48:40 -03:00
fs_inodereserve.c fs: enforce path search and unify inode permission helpers 2026-08-02 18:48:40 -03:00
fs_inodesearch.c fs: resolve a trailing lone '.' path component 2026-08-14 10:20:52 +08:00
inode.h fs: enforce path search and unify inode permission helpers 2026-08-02 18:48:40 -03:00
Make.defs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00