Module Name:    src
Committed By:   agc
Date:           Sat May  8 04:17:45 UTC 2010

Modified Files:
        src/crypto/external/bsd/netpgp/dist/src/lib: netpgp.c

Log Message:
if the home directory does not exist, still set its value as a netpgp
variable, as the netpgpkeys(1) program, for one, will try to create the
home directory if it does not exist.

should fix PR 42435


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 \
    src/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c
diff -u src/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c:1.47 src/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c:1.48
--- src/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c:1.47	Sat May  8 00:31:07 2010
+++ src/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c	Sat May  8 04:17:45 2010
@@ -34,7 +34,7 @@
 
 #if defined(__NetBSD__)
 __COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: netpgp.c,v 1.47 2010/05/08 00:31:07 agc Exp $");
+__RCSID("$NetBSD: netpgp.c,v 1.48 2010/05/08 04:17:45 agc Exp $");
 #endif
 
 #include <sys/types.h>
@@ -1368,6 +1368,7 @@
 		(void) fprintf(stderr,
 			"netpgp: warning homedir \"%s\" not found\n", d);
 	}
+	netpgp_setvar(netpgp, "homedir", d);
 	return 1;
 }
 

Reply via email to