diff --git a/src/66/66-scandir.c b/src/66/66-scandir.c index 8759b19c3ccb7b96b132ed41f612d59b7a75a314..7b96d4b9d9fc16999e31bff5404b7d3184a11585 100644 --- a/src/66/66-scandir.c +++ b/src/66/66-scandir.c @@ -669,7 +669,7 @@ int main(int argc, char const *const *argv, char const *const *envp) remove = 1 ; } - if (BOOT && OWNER) + if (BOOT && OWNER && !CONTAINER) log_die(LOG_EXIT_USER,"-b options can be set only with root") ; OWNERSTR[uid_fmt(OWNERSTR,OWNER)] = 0 ;