1From 874679725c443e5d73e3a33d1158ab25442c8a5f Mon Sep 17 00:00:00 2001 2From: Alexander Kanavin <alex.kanavin@gmail.com> 3Date: Tue, 10 Jan 2017 14:11:30 +0200 4Subject: [PATCH] Do not read config files from $HOME 5 6Upstream-Status: Inappropriate [oe-core specific] 7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 8--- 9 lib/rpmrc.c | 6 ++---- 10 1 file changed, 2 insertions(+), 4 deletions(-) 11 12diff --git a/lib/rpmrc.c b/lib/rpmrc.c 13index 5d778b8b7..dc8d42aeb 100644 14--- a/lib/rpmrc.c 15+++ b/lib/rpmrc.c 16@@ -485,8 +485,7 @@ static void setDefaults(void) 17 if (!defrcfiles) { 18 defrcfiles = rstrscat(NULL, confdir, "/rpmrc", ":", 19 confdir, "/" RPM_VENDOR "/rpmrc", ":", 20- SYSCONFDIR "/rpmrc", ":", 21- userrc, NULL); 22+ SYSCONFDIR "/rpmrc", NULL); 23 } 24 25 /* macrofiles may be pre-set from --macros */ 26@@ -498,8 +497,7 @@ static void setDefaults(void) 27 confdir, "/" RPM_VENDOR "/macros", ":", 28 SYSCONFDIR "/rpm/macros.*", ":", 29 SYSCONFDIR "/rpm/macros", ":", 30- SYSCONFDIR "/rpm/%{_target}/macros", ":", 31- usermacros, NULL); 32+ SYSCONFDIR "/rpm/%{_target}/macros", NULL); 33 } 34 35 free(usermacros); 36