From: Anatoly Pugachev Date: Thu, 12 Oct 2023 11:13:02 +0000 (+0300) Subject: Use empty libuser config file. X-Git-Tag: v2.39.3~29 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=3a5c9c1dd6935fb16f15f210b80ce9c5228e6a19;p=thirdparty%2Futil-linux.git Use empty libuser config file. 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. --- diff --git a/tests/ts/chfn/gecos b/tests/ts/chfn/gecos index 7c088274fb..f7a0bdb28e 100755 --- a/tests/ts/chfn/gecos +++ b/tests/ts/chfn/gecos @@ -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"