summaryrefslogtreecommitdiff
path: root/mail/elm-me/patches/patch-ad
blob: 492a180f859e3d88f10368d4c98e9143e9dd55ee (plain)
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
31
32
33
34
35
36
37
38
39
$NetBSD: patch-ad,v 1.2 2006/01/24 19:01:45 joerg Exp $

--- src/pgp.c.orig	Tue Jun 19 19:03:47 2001
+++ src/pgp.c	Wed Jul 18 19:22:05 2001
@@ -19,8 +19,6 @@ DEBUG_VAR(Debug,__FILE__,"pgp");
 #include <errno.h>
 #include "menu.h"
 
-extern int errno;
-
 /* the column in which the userid begins in the 'pgp -kv' command output */
 #define PGP2_USERID_OFFSET 30
 #define PGP5_USERID_OFFSET 5
@@ -161,7 +159,7 @@ static int GetPGPKey (name, target, targ
 		char *path;
 	    case pgp2:	
 		
-		execl(pgp2_path, 
+		execlp(pgp2_path, 
 		      pgp2_path,"+verbose=0", "+language=en", "-kv", c, 
 		      (char *)0);
 		tmp = errno;
@@ -169,14 +167,14 @@ static int GetPGPKey (name, target, targ
 		break;
 	    case pgp5:
 		path = elm_message(FRM("%s/pgpk"),pgp5_dir);
-		execl(path,
+		execlp(path,
 		      path, "+verbose=0","+language=en", 
 		      "-l", c, (char *)0);       	
 		tmp = errno;
 		perror(path);
 		break;
 	    case gpg:
-		execl(gpg_path, 
+		execlp(gpg_path, 
 		      gpg_path,"--list-public-keys",c,(char *)0);
 		tmp = errno;
 		perror(gpg_path);