diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile.am | 3 | ||||
| -rw-r--r-- | src/argparse.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 6a3b5e4..5f06a29 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -214,7 +214,8 @@ nodist_libgpg_error_la_SOURCES = gpg-error.h # libgpg_error_la_DEPENDENCIES = \ # $(srcdir)/gpg-error.vers -libgpg_error_la_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" +libgpg_error_la_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" \ + -DSYSCONFDIR=\"$(sysconfdir)\" libgpg_error_la_LIBADD = $(gpg_error_res) $(intllibs) $(socklibs) $(LIBTHREAD) gpg_error_SOURCES = strsource-sym.c strerror-sym.c gpg-error.c diff --git a/src/argparse.c b/src/argparse.c index 5fb03b3..c669a3f 100644 --- a/src/argparse.c +++ b/src/argparse.c @@ -2381,7 +2381,7 @@ _gpgrt_argparser (gpgrt_argparse_t *arg, gpgrt_opt_t *opts, s = confname; xfree (arg->internal->confname); arg->internal->confname = _gpgrt_fnameconcat - (confdir.sys? confdir.sys : "/etc", s, NULL); + (confdir.sys? confdir.sys : SYSCONFDIR, s, NULL); _gpgrt_free (tmpname); if (!arg->internal->confname) return (arg->r_opt = ARGPARSE_OUT_OF_CORE); |
