summaryrefslogtreecommitdiffstats
path: root/src/test/test-chown-rec.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/test-chown-rec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-chown-rec.c b/src/test/test-chown-rec.c
index 5d83f59..7558de7 100644
--- a/src/test/test-chown-rec.c
+++ b/src/test/test-chown-rec.c
@@ -153,8 +153,8 @@ TEST(chown_recursive) {
}
static int intro(void) {
- if (geteuid() != 0)
- return log_tests_skipped("not running as root");
+ if (geteuid() != 0 || userns_has_single_user())
+ return log_tests_skipped("not running as root or in userns with single user");
return EXIT_SUCCESS;
}