summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/poptALL.c2
-rw-r--r--lib/trb.c2
-rw-r--r--rpmqv.c2
-rw-r--r--tools/rpmsort.c2
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. */
diff --git a/lib/trb.c b/lib/trb.c
index 983665e76..6ad1cc7ba 100644
--- a/lib/trb.c
+++ b/lib/trb.c
@@ -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) {
diff --git a/rpmqv.c b/rpmqv.c
index ed1b374e4..35fb5c87b 100644
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -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);