diff options
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | poptconfig.c | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,5 @@ 1.17 -> 2.0: + - jbj: fix: SYSCONFDIR as prefix, not literal, when globbing (bz#1051685). - jbj: i18n: update PO files (Translation Project). - jbj: fix: free con->os->nextArg when used (memory leaks). - jbj: enable SUPPORT_GLOBAL_CALCULATOR. diff --git a/poptconfig.c b/poptconfig.c index 0bd3c97..ea35088 100644 --- a/poptconfig.c +++ b/poptconfig.c @@ -509,11 +509,11 @@ int poptReadDefaultConfig(poptContext con, /*@unused@*/ UNUSED(int useEnv)) #if defined(HAVE_GLOB_H) { struct stat sb; - if (!stat("SYSCONFDIR/popt.d", &sb) && S_ISDIR(sb.st_mode)) { + if (!stat(SYSCONFDIR"/popt.d", &sb) && S_ISDIR(sb.st_mode)) { const char ** av = NULL; int ac = 0; - if ((rc = poptGlob(con, "SYSCONFDIR/popt.d/*", &ac, &av)) == 0) { + if ((rc = poptGlob(con, SYSCONFDIR"/popt.d/*", &ac, &av)) == 0) { int i; for (i = 0; rc == 0 && i < ac; i++) { const char * fn = av[i]; |