1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

Revert "systemd-run: refuse --working-directory option with --scope"

This reverts commit 780c805537.
This commit is contained in:
Lennart Poettering 2022-09-22 14:19:10 +02:00
parent add0c9b8bf
commit c7b5ea6955

View File

@ -593,10 +593,6 @@ static int parse_argv(int argc, char *argv[]) {
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"--remain-after-exit and --service-type= are not supported in --scope mode.");
if (arg_scope && arg_working_directory)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"--working-directory is not supported in --scope mode.");
if (arg_stdio != ARG_STDIO_NONE && (with_trigger || arg_scope))
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"--pty/--pipe is not compatible in timer or --scope mode.");