aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-02-27 17:51:28 +0000
committerWerner Koch <[email protected]>1998-02-27 17:51:28 +0000
commitb13e238a195893b55e09f2c5d73c70b27a040a50 (patch)
tree78f97a94022956ff0b12cb9e1bfcf407077688f7 /g10/g10.c
parentrelease 0.2.9 (diff)
downloadgnupg-b13e238a195893b55e09f2c5d73c70b27a040a50.tar.gz
gnupg-b13e238a195893b55e09f2c5d73c70b27a040a50.zip
bug fixesV0-2-10
Diffstat (limited to '')
-rw-r--r--g10/g10.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/g10/g10.c b/g10/g10.c
index fc441fe46..867bb5a43 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -326,7 +326,14 @@ main( int argc, char **argv )
opt.def_digest_algo = DIGEST_ALGO_RMD160;
opt.completes_needed = 1;
opt.marginals_needed = 3;
- opt.homedir = "~/.gnupg";
+ opt.homedir = getenv("GNUPGHOME");
+ if( !opt.homedir || !*opt.homedir ) {
+ #ifdef __MINGW32__
+ opt.homedir = "c:/gnupg";
+ #else
+ opt.homedir = "~/.gnupg";
+ #endif
+ }
/* check wether we have a config file on the commandline */
orig_argc = argc;