From eae26420e30f78fc7c9f2aac94da974c6eb3620c Mon Sep 17 00:00:00 2001 From: Nikolay Nechaev Date: Fri, 11 Nov 2022 13:36:32 +0300 Subject: [PATCH] Create `$BUILDDIRECTORY/_gnupg` with mode 700 Explicitly specify the mode to create the `_gnupg` directory with, to satisfy `gpg`, that otherwise produces the warning: gpg: WARNING: unsafe permissions on homedir '/var/lib/repro/_gnupg' --- repro.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repro.in b/repro.in index 7ce2528..fb20526 100755 --- a/repro.in +++ b/repro.in @@ -71,7 +71,8 @@ function gpg() { } function init_gnupg() { - mkdir -p "$BUILDDIRECTORY/_gnupg" + mkdir -p "$BUILDDIRECTORY/" + mkdir -p --mode 700 "$BUILDDIRECTORY/_gnupg" # ensure signing key is available # We try WKD first, then fallback to keyservers.