Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/netpgp/dist/src/lib if the home director...



details:   https://anonhg.NetBSD.org/src/rev/9c6fc80fb78a
branches:  trunk
changeset: 754671:9c6fc80fb78a
user:      agc <agc%NetBSD.org@localhost>
date:      Sat May 08 04:17:45 2010 +0000

description:
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

diffstat:

 crypto/external/bsd/netpgp/dist/src/lib/netpgp.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 267e9e1aa019 -r 9c6fc80fb78a crypto/external/bsd/netpgp/dist/src/lib/netpgp.c
--- a/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c  Sat May 08 04:16:20 2010 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/lib/netpgp.c  Sat May 08 04:17:45 2010 +0000
@@ -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;
 }
 



Home | Main Index | Thread Index | Old Index