summaryrefslogtreecommitdiff
path: root/src/core/execute.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/execute.c')
-rw-r--r--src/core/execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c
index c7b324ffa8..53aed1f287 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -2385,7 +2385,7 @@ static int exec_child(
exec_context_tty_reset(context, params);
- if (!manager_is_confirm_spawn_disabled(unit->manager)) {
+ if (unit_shall_confirm_spawn(unit)) {
const char *vc = params->confirm_spawn;
_cleanup_free_ char *cmdline = NULL;