1From 4f34994d9ad38d96976578a9d1a006f72e5aca50 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---
10 lib/rpmrc.c | 6 ++----
11 1 file changed, 2 insertions(+), 4 deletions(-)
12
13diff --git a/lib/rpmrc.c b/lib/rpmrc.c
14index 269d490ac..f39dcfc11 100644
15--- a/lib/rpmrc.c
16+++ b/lib/rpmrc.c
17@@ -458,8 +458,7 @@ static void setDefaults(void)
18     if (!defrcfiles) {
19 	defrcfiles = rstrscat(NULL, confdir, "/rpmrc", ":",
20 				confdir, "/" RPM_VENDOR "/rpmrc", ":",
21-				SYSCONFDIR "/rpmrc", ":",
22-			  	"~/.rpmrc", NULL);
23+				SYSCONFDIR "/rpmrc", NULL);
24     }
25
26 #ifndef MACROFILES
27@@ -471,8 +470,7 @@ static void setDefaults(void)
28   				confdir, "/" RPM_VENDOR "/macros", ":",
29 				SYSCONFDIR "/rpm/macros.*", ":",
30 				SYSCONFDIR "/rpm/macros", ":",
31-				SYSCONFDIR "/rpm/%{_target}/macros", ":",
32-				"~/.rpmmacros", NULL);
33+				SYSCONFDIR "/rpm/%{_target}/macros", NULL);
34     }
35 #else
36     macrofiles = MACROFILES;
37