nuttx/libs/libc/pwd/Kconfig
Abhishek Mishra 5c9c236954 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 <mishra.abhishek2808@gmail.com>
2026-07-30 09:48:10 +08:00

38 lines
984 B
Text

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config LIBC_PASSWD_FILE
bool "Have passwd file"
default n
---help---
Have a passwd file. The format of the password file is:
user:x:uid:gid:home
Where:
user: User name
x: Encrypted password
uid: User ID
gid: Group ID
home: Login directory
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"
default 256
---help---
The maximum length of one line in the passwd file. This determines
the size of the I/O buffer used to access the passwd file.
endif # LIBC_PASSWD_FILE