summary refs log tree commit diff
path: root/etc/guix-install.sh
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-11-16 16:23:15 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-11-16 16:23:15 -0500
commit6aa5d1dc24dc2607eb91cfafde1b3d903790cb1f (patch)
treec61ddee3692fcc335ea3a5c428342c7b4b2b3533 /etc/guix-install.sh
parente06df550e21d596b65dc3e5b3e99152be58372b3 (diff)
downloadguix-6aa5d1dc24dc2607eb91cfafde1b3d903790cb1f.tar.gz
guix-install.sh: Expand mktemp template for busybox compatibility.
Fixes <https://issues.guix.gnu.org/58858>.

* etc/guix-install.sh (main): Use 6 'X' characters in the template, as this is
the minimum required by Busybox's mktemp (which matches glibc's mktemp
behavior).

Reported-by: conses <contact@conses.eu>
Diffstat (limited to 'etc/guix-install.sh')
-rwxr-xr-xetc/guix-install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 88ca0e61ea..6bef21bb7e 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -633,7 +633,7 @@ main()
     _msg "${INF}system is ${ARCH_OS}"
 
     umask 0022
-    tmp_path="$(mktemp -t -d guix.XXX)"
+    tmp_path="$(mktemp -t -d guix.XXXXXX)"
 
     if [ -z "${GUIX_BINARY_FILE_NAME}" ]; then
         guix_get_bin_list "${GNU_URL}"