summaryrefslogtreecommitdiff
path: root/components/finsh/msh_file.c
AgeCommit message (Collapse)Author
2026-07-08components: finsh: check token bounds before accessOld-Ding
Move the command length checks before reading command buffers while parsing module, script, and LWP command names. This keeps commands without separators from reading one byte past the provided length. Generated-by: OpenAI Codex Signed-off-by: Old-Ding <[email protected]>
2026-02-25fix(finsh): dup / cause errorWeixie Cui
if src == '/', result in something lik 'dest//file'
2025-12-04[DFS] Support 9PFSGuEe-GUI
What is 9PFS (https://en.wikipedia.org/wiki/9P_(protocol)): 9P (or the Plan 9 Filesystem Protocol or Styx) is a network protocol developed for the Plan 9 from Bell Labs distributed operating system as the means of connecting the components of a Plan 9 system. Files are key objects in Plan 9. They represent windows, network connections, processes, and almost anything else available in the operating system. rt-thread could share filesystem in VM mode with 9pfs such as QEMU... Signed-off-by: GuEe-GUI <[email protected]>
2025-11-30fix(finsh): Fix crash in 'tail' command with insufficient '-n' argumentswdfk-prog
2025-11-22finsh: replace str/mem functions with rt-prefixed versionsliuyucai
Replace standard string and memory functions with RT-Thread's rt-prefixed equivalents where available: - strcpy -> rt_strcpy - strncpy -> rt_strncpy - strcmp -> rt_strcmp - strncmp -> rt_strncmp - strlen -> rt_strlen - strstr -> rt_strstr - memcpy -> rt_memcpy - memcmp -> rt_memcmp Functions like strcat, strchr remain unchanged as RT-Thread does not provide rt-prefixed versions.
2025-11-13fix[components]: 修复日志输出的gcc编译警告wdfk-prog
2024-03-28sync smart & dfs (#8672)Shell
Signed-off-by: xqyjlj <[email protected]> Signed-off-by: Shell <[email protected]> Co-authored-by: xqyjlj <[email protected]>
2023-12-10update libc (#8335)geniusgogo
2023-11-28fix dfs path name overflow. (#8305)geniusgogo
2023-08-07update components & lwp. (#7888)geniusgogo
2023-06-10[dfs] Add DFS v2.0 (#7606)Bernard Xiong
2023-04-08Fix nfs (#7194)geniusgogo
* fixed nfs 64bit arch fault * change mount cmd support nfs.
2022-12-03sync branch rt-smart. (#6641)guo
* Synchronize the code of the rt mart branch to the master branch. * TTY device * Add lwP code from rt-smart * Add vnode in DFS, but DFS will be re-write for rt-smart * There are three libcpu for rt-smart: * arm/cortex-a, arm/aarch64 * riscv64 Co-authored-by: Rbb666 <[email protected]> Co-authored-by: zhkag <[email protected]>
2022-07-01Revert "解决将RT_NULL当做数字0使用的问题"Meco Man
This reverts commit 6a05ddf63d1202456a37e970e5a9ab58370ed093.
2022-07-01解决将RT_NULL当做数字0使用的问题Meco Man
2022-01-14updateMeco Man
2022-01-14[update] move dfs_posix.h to legacy/dfs/dfs_posix.hliukangcc
2022-01-09[core] 使用rt_memcpy rt_memset代替memcpy memsetMeco Man
2021-12-24fix cmd: tailmazhiyuan
2021-11-16[dfs] move dfs backMeco Man
2021-10-21[posix][dfs] move dfs_posix dfs_poll dfs_select.c to posix folderMeco Man
2021-08-23Remove C Style Command Shell马志远
2021-06-09[msh]implement tail commandMeco Man
2021-03-08[compoenets] auto & manual formattedMeco Man
2021-03-03[finsh] add mount/umount cmdtangyuxin
2020-10-09[msh] rm command supports recursive deletion of folderstangyuxin
2020-06-13Update msh_file.cDavid Lin
2020-06-12[finsh]Fixed a bug may cause stackover flowDavid Lin
add code: if (line_buf == RT_NULL) return -RT_ENOMEM;
2019-09-25[components][finsh] Decouple RT_USING_DEVICE dependency for msh featurechenyong
Signed-off-by: chenyong <[email protected]>
2018-11-07[finsh/shell] compatible definition for cube package[email protected]
2018-10-14[license] Change license to Apache.Bernard Xiong
2015-10-11[Finsh] Add script feature for msh.Bernard Xiong