diff options
author | Werner Koch <[email protected]> | 2002-08-06 13:29:27 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-08-06 13:29:27 +0000 |
commit | a1259acdcbfb368db72a37381f895b5a9e16b835 (patch) | |
tree | 015ff64680fe830d48e44ed3ba6e5fd7b43db3fd /g10/g10.c | |
parent | tidying up RISC OS stuff (diff) | |
download | gnupg-a1259acdcbfb368db72a37381f895b5a9e16b835.tar.gz gnupg-a1259acdcbfb368db72a37381f895b5a9e16b835.zip |
* g10.c (main): Try to use "gpg.conf" as default option file.
* openfile.c (copy_options_file): Changed name of created file.
Diffstat (limited to 'g10/g10.c')
-rw-r--r-- | g10/g10.c | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -979,8 +979,21 @@ main( int argc, char **argv ) /* Okay, we are now working under our real uid */ if( default_config ) - configname = make_filename(opt.homedir, "options", NULL ); - + { + configname = make_filename(opt.homedir, "gpg.conf", NULL ); + if (!access (configname, R_OK)) + { /* Print a warning when both config files are present. */ + char *p = make_filename(opt.homedir, "options", NULL ); + if (!access (p, R_OK)) + log_info (_("NOTE: old default options file `%s' ignored\n"), p); + m_free (p); + } + else + { /* Keep on using the old default one. */ + m_free (configname); + configname = make_filename(opt.homedir, "options", NULL ); + } + } argc = orig_argc; argv = orig_argv; pargs.argc = &argc; |