mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-24 16:43:28 +02:00
Better take the length of SKELEXT into account
This commit is contained in:
parent
452e415784
commit
45accef52a
@ -1,6 +1,7 @@
|
|||||||
2004-08-31 Werner Koch <wk@g10code.de>
|
2004-08-31 Werner Koch <wk@g10code.de>
|
||||||
|
|
||||||
* openfile.c (copy_options_file): Use gpg-conf.skel
|
* openfile.c (copy_options_file): Use gpg-conf.skel. Better take
|
||||||
|
the length of SKELEXT into account, someone might make it larger.
|
||||||
* Makefile.am: Install options.skel as gpg-conf.skel.
|
* Makefile.am: Install options.skel as gpg-conf.skel.
|
||||||
|
|
||||||
2004-08-18 Marcus Brinkmann <marcus@g10code.de>
|
2004-08-18 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
@ -308,7 +308,8 @@ copy_options_file( const char *destdir )
|
|||||||
if( opt.dry_run )
|
if( opt.dry_run )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fname = xmalloc ( strlen(datadir) + strlen(destdir) + 15 );
|
fname = xmalloc ( strlen(datadir) + strlen(destdir)
|
||||||
|
strlen (SKELEXT) + 15 );
|
||||||
strcpy(stpcpy(fname, datadir), DIRSEP_S "gpg-conf" SKELEXT );
|
strcpy(stpcpy(fname, datadir), DIRSEP_S "gpg-conf" SKELEXT );
|
||||||
src = fopen( fname, "r" );
|
src = fopen( fname, "r" );
|
||||||
if( !src ) {
|
if( !src ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user