tmpfiles: we don't support the combination of --root and --user, hence refuse it

--user only really works with certain env vars such as XDG_RUNTIME_DIR
set, but that's just weird if --root= is used.
This commit is contained in:
Lennart Poettering 2020-07-28 17:52:48 +02:00
parent dd04fb3268
commit b63aacaa1a
1 changed files with 4 additions and 0 deletions

View File

@ -3065,6 +3065,10 @@ static int parse_argv(int argc, char *argv[]) {
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"When --replace= is given, some configuration items must be specified");
if (arg_root && arg_user)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"Combination of --user and --root= is not supported.");
return 1;
}