]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Use empty libuser config file.
authorAnatoly Pugachev <matorola@gmail.com>
Thu, 12 Oct 2023 11:13:02 +0000 (14:13 +0300)
committerAnatoly Pugachev <matorola@gmail.com>
Thu, 12 Oct 2023 11:13:02 +0000 (14:13 +0300)
In case of an absence /etc/libuser.conf, use empty file by pointing
LIBUSER_CONF to /dev/null. This allows chfn/gecos to pass without error.

PS: The "libuser" library is no longer maintained, and it was recommended
by the original author to not use it anymore.

tests/ts/chfn/gecos

index 7c088274fbdba9e1a3e67d266af30f9f3b976ba6..f7a0bdb28e7ba96d12cd323a1c07c1b821312c1a 100755 (executable)
@@ -22,6 +22,8 @@ TS_DESC="gecos"
 . "$TS_TOPDIR"/functions.sh
 ts_init "$*"
 
+export LIBUSER_CONF=/dev/null
+
 ts_skip_nonroot
 ts_check_test_command "$TS_CMD_CHFN"
 ts_check_prog "useradd"