zephyr/subsys/fs
Peter A. Bigot bd6af278ae subsys/fs/shell: avoid warning about output format truncation
The previous way of creating an absolute path relied on snprintf(), and
when used with newlib gcc warned that the output could be truncated
before the last format character.  Rework to use code that doesn't rely
on snprintf.

See discussion at https://bugzilla.redhat.com/show_bug.cgi?id=1431678

Also ensure that cwd is always NUL-terminated, and use the utility
function to create the absolute path in cmd_trunc.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-08-06 19:39:26 +02:00
..
fcb subsys/fs: remove FS_FLASH_STORAGE_PARTITION 2019-07-22 18:21:50 +02:00
nvs fs/nvs: fix the sector size check 2019-08-05 13:20:07 +02:00
CMakeLists.txt subsys/fs: add support for littlefs 2019-08-06 19:39:26 +02:00
fat_fs.c cleanup: include/: move misc/__assert.h to sys/__assert.h 2019-06-27 22:55:49 -04:00
fs.c fs: add support for mount point listing on vfs root 2019-07-26 14:20:00 +02:00
fs_impl.c subsys/fs: add implementation helper module 2019-07-22 12:46:50 +02:00
fs_impl.h subsys/fs: add implementation helper module 2019-07-22 12:46:50 +02:00
fuse_fs_access.c cleanup: include/: move fs.h to fs/fs.h 2019-06-27 22:55:49 -04:00
Kconfig subsys/fs: add support for littlefs 2019-08-06 19:39:26 +02:00
littlefs_fs.c subsys/fs: add support for littlefs 2019-08-06 19:39:26 +02:00
nffs_fs.c subsys/fs: add implementation helper module 2019-07-22 12:46:50 +02:00
shell.c subsys/fs/shell: avoid warning about output format truncation 2019-08-06 19:39:26 +02:00