mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* g10.c (main): Try to use "gpg.conf" as default option file.
* openfile.c (copy_options_file): Changed name of created file.
This commit is contained in:
parent
181dcc69f4
commit
a1259acdcb
3 changed files with 23 additions and 5 deletions
17
g10/g10.c
17
g10/g10.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue