summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmael Luceno2024-01-27 17:56:39 +0100
committerIsmael Luceno2024-01-27 17:56:39 +0100
commitc4b7e0066e80367e6206ce24e540fecaf2916c9c (patch)
tree6655f5640bd2611e0b25bbc0cc73eae64493ef61
parentbca927a6c1b11b0ca3ae102627f88710fa618d69 (diff)
libgpg: Fix LANGUAGE overriding LC_ALLHEADmaster
Fixes: da2b9f84a380 ("libmisc: introduce get_safe_locale and use it in cast, libgpg", 2020-03-18) Fixes: 496fc22b0037 ("Fix build issues related to non-UTF-8 LC_ALL", 2018-03-10) Fixes: 7aafabba713f ("libgpg: set LC_ALL=C for commands output of which we parse #14705", 2008-09-02)
-rwxr-xr-xvar/lib/sorcery/modules/libgpg3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/lib/sorcery/modules/libgpg b/var/lib/sorcery/modules/libgpg
index a7bbee1b..89288150 100755
--- a/var/lib/sorcery/modules/libgpg
+++ b/var/lib/sorcery/modules/libgpg
@@ -49,7 +49,8 @@ gpg_verify_signature() { # $1 sig $2 file $3 pubring $4 algo var
return 200
else
local output=$TMP_DIR/$(smgl_basename $file).gpgout
- LC_ALL="$(get_safe_locale)" gpg --no-default-keyring \
+ LANGUAGE= LC_ALL="$(get_safe_locale)" \
+ gpg --no-default-keyring \
--always-trust \
--keyring $keyring \
--batch \