]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
nss test_range: make sure /etc/nsswitch.conf and /etc/subuid exists 478/head
authorSerge Hallyn <serge@hallyn.com>
Mon, 27 Dec 2021 21:26:27 +0000 (15:26 -0600)
committerSerge Hallyn <serge@hallyn.com>
Mon, 27 Dec 2021 21:47:29 +0000 (15:47 -0600)
Signed-off-by: Serge Hallyn <serge@hallyn.com>
tests/libsubid/04_nss/test_range

index 356764fb0b71469d3eb33d7926f592b2ea7629bb..ee25080f19c7908b4575217ce79d00e7e8509787 100755 (executable)
@@ -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() {