guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/07: installer: Run wrapped program with 'execl', not 'system'.


From: guix-commits
Subject: 03/07: installer: Run wrapped program with 'execl', not 'system'.
Date: Fri, 26 Apr 2019 08:19:46 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 6c849cdb988d403fec11ace82704535723de9e66
Author: Ludovic Courtès <address@hidden>
Date:   Fri Apr 26 12:07:31 2019 +0200

    installer: Run wrapped program with 'execl', not 'system'.
    
    'system' invokes /bin/sh, which is certainly not needed here.
    
    * gnu/installer.scm (installer-program): Use 'execl', not 'system'.
---
 gnu/installer.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/installer.scm b/gnu/installer.scm
index 881c40e..dfb0c9d 100644
--- a/gnu/installer.scm
+++ b/gnu/installer.scm
@@ -389,4 +389,5 @@ selected keymap."
        ;; some reason, unicode support is not correctly installed
        ;; when calling this in 'installer-builder'.
        (setenv "LANG" "en_US.UTF-8")
-       (system #$(program-file "installer-real" installer-builder)))))
+       (execl #$(program-file "installer-real" installer-builder)
+              "installer-real"))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]