From ada530acb1e848daaac027872e6bad067e82207b Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sun, 10 Apr 2022 23:41:15 +0200 Subject: shepherd: 'exec-command*' has a valid default #:directory. Fixes a regression introduced in 938448bf40fc77092859352d2243e2d0c236375f where 'exec-command*' could get #:directory #f, in particular when called by 'fork+exec-command/container'. * gnu/build/shepherd.scm (exec-command*): Add default value for #:directory. --- gnu/build/shepherd.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/build/shepherd.scm b/gnu/build/shepherd.scm index 0627bac5b9..474054f645 100644 --- a/gnu/build/shepherd.scm +++ b/gnu/build/shepherd.scm @@ -120,7 +120,7 @@ (define* (read-pid-file/container pid pid-file #:key (max-delay 5)) pid))) (define* (exec-command* command #:key user group log-file pid-file - directory (environment-variables (environ))) + (directory "/") (environment-variables (environ))) "Like 'exec-command', but first restore signal handles modified by shepherd (PID 1)." ;; First restore the default handlers. -- cgit v1.2.3