diff options
author | Dominic Hargreaves <dom@earth.li> | 2021-02-10 22:50:05 +0100 |
---|---|---|
committer | Dominic Hargreaves <dom@earth.li> | 2021-02-10 22:50:05 +0100 |
commit | 913c723d33fa382d911cb17c41a7478a0423b4d2 (patch) | |
tree | 191ebf5e688b288fab9393c7f26716c4d0328562 /debian/patches/hardcode-path | |
parent | fc8114aea66ceaa97fe08e11fc4868c54913143e (diff) | |
parent | 2e1570e2c8f5034e265143d4fe13457273bc085a (diff) |
libgnupg-interface-perl (1.01-2) unstable; urgency=high
* Explicitly specify path to gpg to avoid taint mode problems
(Closes: #981647)
[dgit import unpatched libgnupg-interface-perl 1.01-2]
Diffstat (limited to 'debian/patches/hardcode-path')
-rw-r--r-- | debian/patches/hardcode-path | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/patches/hardcode-path b/debian/patches/hardcode-path new file mode 100644 index 0000000..1c6d8bc --- /dev/null +++ b/debian/patches/hardcode-path @@ -0,0 +1,31 @@ +Description: Hardcode path to /usr/bin/gpg +Author: Dominic Hargreaves +Last-Update: 2021-02-10 +Forwarded: Not-Needed +Bug-Debian: https://bugs.debian.org/981647 + +diff --git a/lib/GnuPG/Interface.pm b/lib/GnuPG/Interface.pm +index 13b313e..84312e2 100644 +--- a/lib/GnuPG/Interface.pm ++++ b/lib/GnuPG/Interface.pm +@@ -76,7 +76,7 @@ sub gnupg_call { shift->call(@_); } + + sub BUILD { + my ( $self, $args ) = @_; +- $self->hash_init( call => 'gpg', %$args ); ++ $self->hash_init( call => '/usr/bin/gpg', %$args ); + } + + struct( +@@ -1190,9 +1190,8 @@ keys to list in a key-listing. + + =item call + +-This defines the call made to invoke GnuPG. Defaults to 'gpg'; this +-should be changed if 'gpg' is not in your path, or there is a different +-name for the binary on your system. ++This defines the call made to invoke GnuPG. Defaults to '/usr/bin/gpg'; this ++should be changed if there is a different name for the binary on your system. + + =item passphrase + |