nuttx-update/fs/tmpfs
wangjianyu3 d4bcdcb2fc fs/tmpfs: Skip any slash at the beginning of relpath
`tmpfs_stat()` fails when relpath start with slash.

Log

  Host
    $ adb -s 1234 pull /tmp/subdir
    adb: warning: skipping special file '/tmp/subdir/uname' (mode = 0o0)
    /tmp/subdir/: 0 files pulled. 1 file skipped.

  Device
    state_process_list (411): stat failed </tmp/subdir//uname> -1 22

Ref: https://github.com/apache/nuttx/blame/master/libs/libc/stdlib/lib_realpath.c#L111
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-12-07 11:40:00 +08:00
..
CMakeLists.txt fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_tmpfs.c fs/tmpfs: Skip any slash at the beginning of relpath 2024-12-07 11:40:00 +08:00
fs_tmpfs.h fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
Kconfig Fix typos in comments and documentation (#750) 2020-04-08 06:45:35 -06:00
Make.defs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00