Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso/initcpio/install
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2020-07-28 20:54:56 +0300
committernl6720 <nl6720@gmail.com>2020-07-29 18:05:16 +0300
commitb8dc4484e8ebe0b841e0a5589eb781dc551a620f (patch)
treea6264532e6b77dae87df2127b61ba5247bbeb1f2 /archiso/initcpio/install
parente264b44682a930f70715ea58cf96e69c87a86b64 (diff)
archiso/initcpio/install/archiso: fix GnuPG home directory permissions
Gets rid of a gpg warning: gpg: WARNING: unsafe permissions on homedir '/tmp/mkinitcpio.*/root/gpg'
Diffstat (limited to 'archiso/initcpio/install')
-rw-r--r--archiso/initcpio/install/archiso2
1 files changed, 1 insertions, 1 deletions
diff --git a/archiso/initcpio/install/archiso b/archiso/initcpio/install/archiso
index 3006b5f..74948c7 100644
--- a/archiso/initcpio/install/archiso
+++ b/archiso/initcpio/install/archiso
@@ -24,7 +24,7 @@ build() {
add_file /usr/lib/udev/rules.d/95-dm-notify.rules
add_file /usr/lib/initcpio/udev/11-dm-initramfs.rules /usr/lib/udev/rules.d/11-dm-initramfs.rules
if [[ $ARCHISO_GNUPG_FD ]]; then
- mkdir -p "$BUILDROOT/gpg"
+ mkdir -m 0700 -- "$BUILDROOT/gpg"
gpg --homedir "$BUILDROOT/gpg" --import <& "$ARCHISO_GNUPG_FD"
fi
}