File: hardcode-path

package info (click to toggle)
libgnupg-interface-perl 1.04-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 824 kB
  • sloc: perl: 3,828; makefile: 6; sh: 5
file content (30 lines) | stat: -rw-r--r-- 863 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Hardcode path to /usr/bin/gpg
Bug-Debian: https://bugs.debian.org/981647
Forwarded: Not-Needed
Author: Dominic Hargreaves <dom@earth.li>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2023-09-17

--- a/lib/GnuPG/Interface.pm
+++ b/lib/GnuPG/Interface.pm
@@ -76,7 +76,7 @@
 
 sub BUILD {
     my ( $self, $args ) = @_;
-    $self->hash_init( call => 'gpg', %$args );
+    $self->hash_init( call => '/usr/bin/gpg', %$args );
 }
 
 struct(
@@ -1201,9 +1201,8 @@
 
 =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