diff options
-rw-r--r-- | lib/poptALL.c | 2 | ||||
-rw-r--r-- | lib/trb.c | 2 | ||||
-rw-r--r-- | rpmqv.c | 2 | ||||
-rw-r--r-- | tools/rpmsort.c | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/lib/poptALL.c b/lib/poptALL.c index cd973d899..444c31311 100644 --- a/lib/poptALL.c +++ b/lib/poptALL.c @@ -347,7 +347,9 @@ rpmcliInit(int argc, char *const argv[], struct poptOption * optionsTable) optCon = poptGetContext(__progname, argc, (const char **)argv, optionsTable, 0); (void) poptReadConfigFile(optCon, LIBRPMALIAS_FILENAME); +#if RPM_USES_POPTREADDEFAULTCONFIG (void) poptReadDefaultConfig(optCon, 1); +#endif poptSetExecPath(optCon, RPMCONFIGDIR, 1); /* Process all options, whine if unknown. */ @@ -43,7 +43,9 @@ main(int argc, const char *argv[]) optCon = poptGetContext(argv[0], argc, argv, optionsTable, 0); (void) poptReadConfigFile(optCon, LIBRPMALIAS_FILENAME); +#if RPM_USES_POPTREADDEFAULTCONFIG (void) poptReadDefaultConfig(optCon, 1); +#endif poptSetExecPath(optCon, RPMCONFIGDIR, 1); while ((arg = poptGetNextOpt(optCon)) > 0) { @@ -270,7 +270,9 @@ int main(int argc, const char ** argv) /* We need to handle that before dealing with the rest of the arguments. */ optCon = poptGetContext(__progname, argc, argv, optionsTable, 0); (void) poptReadConfigFile(optCon, LIBRPMALIAS_FILENAME); +#if RPM_USES_POPTREADDEFAULTCONFIG (void) poptReadDefaultConfig(optCon, 1); +#endif poptSetExecPath(optCon, RPMCONFIGDIR, 1); while ((arg = poptGetNextOpt(optCon)) > 0) { diff --git a/tools/rpmsort.c b/tools/rpmsort.c index 9fa3437f0..66c7a666a 100644 --- a/tools/rpmsort.c +++ b/tools/rpmsort.c @@ -296,7 +296,9 @@ main(int argc, const char *argv[]) _depends_debug = 1; optCon = poptGetContext("rpmsort", argc, argv, optionsTable, 0); +#if RPM_USES_POPTREADDEFAULTCONFIG poptReadDefaultConfig(optCon, 1); +#endif while ((arg = poptGetNextOpt(optCon)) > 0) { optArg = poptGetOptArg(optCon); |