1
0
Fork 0
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:
Werner Koch 2002-08-06 13:29:27 +00:00
parent 181dcc69f4
commit a1259acdcb
3 changed files with 23 additions and 5 deletions

View file

@ -301,7 +301,7 @@ copy_options_file( const char *destdir )
m_free(fname);
return;
}
strcpy(stpcpy(fname, destdir), DIRSEP_S "options" );
strcpy(stpcpy(fname, destdir), DIRSEP_S "gpg.conf" );
dst = fopen( fname, "w" );
if( !dst ) {
log_error(_("%s: can't create: %s\n"), fname, strerror(errno) );
@ -320,7 +320,7 @@ copy_options_file( const char *destdir )
}
fclose( dst );
fclose( src );
log_info(_("%s: new options file created\n"), fname );
log_info(_("new configuration file `%s' created\n"), fname );
m_free(fname);
}
@ -353,7 +353,7 @@ try_make_homedir( const char *fname )
log_info( _("%s: directory created\n"), fname );
copy_options_file( fname );
log_info(_("you have to start GnuPG again, "
"so it can read the new options file\n") );
"so it can read the new configuration file\n") );
g10_exit(1);
}
}