From 4ce27b5e60c1c8ef1f645f613f61541ff3960ca1 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Mon, 27 Dec 2021 15:26:27 -0600 Subject: [PATCH] nss test_range: make sure /etc/nsswitch.conf and /etc/subuid exists Signed-off-by: Serge Hallyn --- tests/libsubid/04_nss/test_range | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/libsubid/04_nss/test_range b/tests/libsubid/04_nss/test_range index 356764fb..ee25080f 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() {