diff options
author | Werner Koch <[email protected]> | 2007-06-14 17:05:07 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2007-06-14 17:05:07 +0000 |
commit | 0cfbfd6186c7b28a355069ebb89b9739908318c6 (patch) | |
tree | a1e2990f266ca151fc47f06d41f40bca743eea76 /tools/gpgconf-comp.c | |
parent | Syntax fix - should build now - however not tested. (diff) | |
download | gnupg-0cfbfd6186c7b28a355069ebb89b9739908318c6.tar.gz gnupg-0cfbfd6186c7b28a355069ebb89b9739908318c6.zip |
A whole bunch of changes to allow building for Windows.
See the ChangeLogs for details.
Diffstat (limited to 'tools/gpgconf-comp.c')
-rw-r--r-- | tools/gpgconf-comp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c index 16fa3ad1a..c09078165 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -2676,9 +2676,13 @@ gc_process_gpgconf_conf (const char *fname, int update, int defaults) int runtime[GC_BACKEND_NR]; int used_components[GC_COMPONENT_NR]; int backend_id, component_id; + char *fname_buffer = NULL; if (!fname) - fname = GNUPG_SYSCONFDIR "/gpgconf.conf"; + { + fname_buffer = make_filename (gnupg_sysconfdir (), "gpgconf.conf", NULL); + fname = fname_buffer; + } for (backend_id = 0; backend_id < GC_BACKEND_NR; backend_id++) runtime[backend_id] = 0; @@ -2695,6 +2699,7 @@ gc_process_gpgconf_conf (const char *fname, int update, int defaults) gc_error (0, errno, "can not open global config file `%s'", fname); result = -1; } + xfree (fname_buffer); return result; } @@ -2931,5 +2936,6 @@ gc_process_gpgconf_conf (const char *fname, int update, int defaults) } } + xfree (fname_buffer); return result; } |