summaryrefslogtreecommitdiff
path: root/src/run
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-09-22 14:19:10 +0200
committerLennart Poettering <lennart@poettering.net>2022-09-22 14:19:10 +0200
commitc7b5ea69551c021a729a5d9a898a1a0d5d924bdf (patch)
tree4217762c4ae29844a194984965fcb98694c03f90 /src/run
parentadd0c9b8bf7edbafe8e50b6174f9b0b667103166 (diff)
downloadsystemd-c7b5ea69551c021a729a5d9a898a1a0d5d924bdf.tar.gz
Revert "systemd-run: refuse --working-directory option with --scope"
This reverts commit 780c8055378589e5a7d419789761c35d05295291.
Diffstat (limited to 'src/run')
-rw-r--r--src/run/run.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/run/run.c b/src/run/run.c
index 741f7b279f..e2915fe4de 100644
--- a/src/run/run.c
+++ b/src/run/run.c
@@ -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.");