From: Anatoly Pugachev Date: Thu, 12 Oct 2023 11:13:02 +0000 (+0300) Subject: Use empty libuser config file. X-Git-Tag: v2.40-rc1~203^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cff4e5a68b5da8a5016042ceef227c8f1c9a2819;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"