nuttx-apps/nshlib
Michal Lenc 0640d3f550 nshlib/nsh_fsutils.c: fix getpid_callback function read size
Commit 5330966 replaced local static buffer with malloc allocated
lib_get_pathbuffer. This however prevents the usage of sizeof(buffer)
in the follow up read function, therefore the read size has to be
specified as PATH_MAX - 1.

This fixes the functionality of pidof function call (and subsequently
pkill call that uses pidof).

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2025-03-27 09:25:21 +08:00
..
CMakeLists.txt nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Kconfig nshlib: typo fixed in Kconfig 2025-03-24 20:33:26 +08:00
Make.defs nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Makefile nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh.h apps/nshlib: replace CONFIG_NSH_LINELEN to LINE_MAX 2025-01-14 19:31:54 +08:00
nsh_alias.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_altconsole.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_builtin.c nshlib/builtin: check background task before restore the signal 2025-02-12 10:30:05 -03:00
nsh_codeccmd.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_command.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_console.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_console.h apps/nshlib: replace CONFIG_NSH_LINELEN to LINE_MAX 2025-01-14 19:31:54 +08:00
nsh_consolemain.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_dbgcmds.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_ddcmd.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_envcmds.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_fileapps.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_fscmds.c nshlib: Remove the unnecessary temp path buffer 2025-01-20 22:39:35 +08:00
nsh_fsutils.c nshlib/nsh_fsutils.c: fix getpid_callback function read size 2025-03-27 09:25:21 +08:00
nsh_init.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_login.c apps/nshlib: replace CONFIG_NSH_LINELEN to LINE_MAX 2025-01-14 19:31:54 +08:00
nsh_mmcmds.c apps/nshlib: Reuse local variable for cmd_memdump 2025-01-17 23:27:43 +08:00
nsh_mntcmds.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_modcmds.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_netcmds.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_parse.c apps/nshlib: Save result and return ERROR if lib_get_tempbuffer() fails 2025-01-16 22:48:34 +08:00
nsh_passwdcmds.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_printf.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_proccmds.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_prompt.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_routecmds.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_script.c apps/nshlib: replace CONFIG_NSH_LINELEN to LINE_MAX 2025-01-14 19:31:54 +08:00
nsh_session.c apps/nshlib: replace CONFIG_NSH_LINELEN to LINE_MAX 2025-01-14 19:31:54 +08:00
nsh_syscmds.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_system.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_telnetd.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_telnetlogin.c apps/nshlib: replace CONFIG_NSH_LINELEN to LINE_MAX 2025-01-14 19:31:54 +08:00
nsh_test.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_timcmds.c nshlib: Replace the big temp buffer with lib_get_[path|temp]buffer 2025-01-20 22:39:35 +08:00
nsh_usbconsole.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_usbtrace.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_vars.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
nsh_wait.c nshlib: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
rc.sysinit.template nsh/script: support rc.sysinit script 2022-04-21 12:54:24 +03:00
rcS.template nsh/script: support rc.sysinit script 2022-04-21 12:54:24 +03:00