Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso/mkarchiso
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2022-11-26 20:00:40 +0200
committernl6720 <nl6720@gmail.com>2022-12-06 13:12:53 +0200
commit2c3420204e25c31b6768f8e30ade348db757b722 (patch)
tree8b53a974d6904f312fa3701610672aaaa9fb7000 /archiso/mkarchiso
parentd31f38843ac0cb803561b0dbe976a3189ac0191c (diff)
mkarchiso: open the ARCHISO_GNUPG_FD, ARCHISO_TLS_FD and ARCHISO_TLSCA_FD file descriptors only for reading
Nothing should ever be written to these files, so let's make sure it cannot happen.
Diffstat (limited to 'archiso/mkarchiso')
-rwxr-xr-xarchiso/mkarchiso6
1 files changed, 3 insertions, 3 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso
index 9000044..7a3fd1c 100755
--- a/archiso/mkarchiso
+++ b/archiso/mkarchiso
@@ -336,15 +336,15 @@ _make_packages() {
_msg_info "Installing packages to '${pacstrap_dir}/'..."
if [[ -v gpg_publickey ]]; then
- exec {ARCHISO_GNUPG_FD}<>"$gpg_publickey"
+ exec {ARCHISO_GNUPG_FD}<"$gpg_publickey"
export ARCHISO_GNUPG_FD
fi
if [[ -v cert_list[0] ]]; then
- exec {ARCHISO_TLS_FD}<>"${cert_list[0]}"
+ exec {ARCHISO_TLS_FD}<"${cert_list[0]}"
export ARCHISO_TLS_FD
fi
if [[ -v cert_list[2] ]]; then
- exec {ARCHISO_TLSCA_FD}<>"${cert_list[2]}"
+ exec {ARCHISO_TLSCA_FD}<"${cert_list[2]}"
export ARCHISO_TLSCA_FD
fi