]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "systemd-run: refuse --working-directory option with --scope"
authorLennart Poettering <lennart@poettering.net>
Thu, 22 Sep 2022 12:19:10 +0000 (14:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 22 Sep 2022 12:19:10 +0000 (14:19 +0200)
This reverts commit 780c8055378589e5a7d419789761c35d05295291.

src/run/run.c

index 741f7b279fea339bfd83888c48c56f59dd2648e3..e2915fe4defdbe9567227d07cd0eeb9072fbb00c 100644 (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.");