diff options
Diffstat (limited to 'archivers/hpack.non-usa.only/files/patch-crypt_keymgmt.c')
-rw-r--r-- | archivers/hpack.non-usa.only/files/patch-crypt_keymgmt.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/archivers/hpack.non-usa.only/files/patch-crypt_keymgmt.c b/archivers/hpack.non-usa.only/files/patch-crypt_keymgmt.c new file mode 100644 index 000000000000..689ba37f6b94 --- /dev/null +++ b/archivers/hpack.non-usa.only/files/patch-crypt_keymgmt.c @@ -0,0 +1,29 @@ +--- crypt/keymgmt.c.orig Tue Aug 17 16:56:14 1993 ++++ crypt/keymgmt.c Tue Dec 28 20:01:38 1999 +@@ -495,11 +495,24 @@ + FD keyFileFD, savedInFD = getInputFD(); + BOOLEAN matched, firstTime = TRUE; + char *matchID, firstChar; +- char *keyFilePath; ++ char *keyFilePath, *s; + int userIDlength, i; ++#ifdef __UNIX__ ++ char *h, buf[ MAX_PATH ]; ++#endif + ++ if ((s = getenv( PGPPATH )) == NULL) ++#ifdef __UNIX__ ++ if ((h = getenv( "HOME" )) != NULL) { ++ strcpy(buf, h); ++ strcat(buf, "/.pgp"); ++ s = buf; ++ } ++#else ++ ; ++#endif + /* Use the keyID to get the public key from a key file */ +- keyFilePath = getFirstKeyPath( getenv( PGPPATH ), keyFileName ); ++ keyFilePath = getFirstKeyPath( s, keyFileName ); + while( keyFilePath != NULL ) + { + /* Open key file */ |