This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 5c9c236954b8ab2b736e678654de54c2d11bbc2a
Author: Abhishek Mishra <[email protected]>
AuthorDate: Wed Jul 29 13:49:01 2026 +0000

    libc/pwd: default ostest multiuser passwd path to /tmp/ostest_passwd
    
    When CONFIG_TESTING_OSTEST_MULTIUSER is enabled, default
    CONFIG_LIBC_PASSWD_FILEPATH to a writable tmpfs path used by the
    ostest multiuser passwd sub-test.
    
    Signed-off-by: Abhishek Mishra <[email protected]>
---
 libs/libc/pwd/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libs/libc/pwd/Kconfig b/libs/libc/pwd/Kconfig
index 88d5ba4e922..4e7b1cb9285 100644
--- a/libs/libc/pwd/Kconfig
+++ b/libs/libc/pwd/Kconfig
@@ -22,9 +22,11 @@ if LIBC_PASSWD_FILE
 
 config LIBC_PASSWD_FILEPATH
        string "Path to passwd file"
+       default "/tmp/ostest_passwd" if TESTING_OSTEST_MULTIUSER
        default "/etc/passwd"
        ---help---
                Provides the location of the passwd file.  The default is 
/etc/passwd
+               (/tmp/ostest_passwd when CONFIG_TESTING_OSTEST_MULTIUSER is 
enabled).
 
 config LIBC_PASSWD_LINESIZE
        int "Maximum line size"

Reply via email to