From: Serge Hallyn Date: Mon, 27 Dec 2021 21:26:27 +0000 (-0600) Subject: nss test_range: make sure /etc/nsswitch.conf and /etc/subuid exists X-Git-Tag: v4.11~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ce27b5e60c1c8ef1f645f613f61541ff3960ca1;p=thirdparty%2Fshadow.git nss test_range: make sure /etc/nsswitch.conf and /etc/subuid exists Signed-off-by: Serge Hallyn --- diff --git a/tests/libsubid/04_nss/test_range b/tests/libsubid/04_nss/test_range index 356764fb0..ee25080f1 100755 --- a/tests/libsubid/04_nss/test_range +++ b/tests/libsubid/04_nss/test_range @@ -5,6 +5,7 @@ set -x echo "starting check_range tests" export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH +touch /etc/nsswitch.conf mount --bind ./nsswitch3.conf /etc/nsswitch.conf cleanup1() { umount /etc/nsswitch.conf @@ -34,6 +35,7 @@ fi umount /etc/nsswitch.conf mount --bind ./nsswitch1.conf /etc/nsswitch.conf +touch /etc/subuid /etc/subgid mount --bind ./empty /etc/subuid cleanup2() {