From 3a5c9c1dd6935fb16f15f210b80ce9c5228e6a19 Mon Sep 17 00:00:00 2001 From: Anatoly Pugachev Date: Thu, 12 Oct 2023 14:13:02 +0300 Subject: [PATCH] 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. --- tests/ts/chfn/gecos | 2 ++ 1 file changed, 2 insertions(+) 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" -- 2.47.3