blob: fda64eefe01729128ea41386bb427f55acdd5f6f [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From 35381b6cd6c1b571bf7e6b0640de0f54dbf94386 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
Andrew Geissler87f5cff2022-09-30 13:13:31 -050012Index: git/lib/rpmrc.c
13===================================================================
14--- git.orig/lib/rpmrc.c
15+++ git/lib/rpmrc.c
Brad Bishop6e60e8b2018-02-01 10:27:11 -050016@@ -458,8 +458,7 @@ static void setDefaults(void)
17 if (!defrcfiles) {
18 defrcfiles = rstrscat(NULL, confdir, "/rpmrc", ":",
19 confdir, "/" RPMCANONVENDOR "/rpmrc", ":",
20- SYSCONFDIR "/rpmrc", ":",
21- "~/.rpmrc", NULL);
22+ SYSCONFDIR "/rpmrc", ":");
23 }
24
25 #ifndef MACROFILES
26@@ -471,8 +470,7 @@ static void setDefaults(void)
27 confdir, "/" RPMCANONVENDOR "/macros", ":",
28 SYSCONFDIR "/rpm/macros.*", ":",
29 SYSCONFDIR "/rpm/macros", ":",
30- SYSCONFDIR "/rpm/%{_target}/macros", ":",
31- "~/.rpmmacros", NULL);
32+ SYSCONFDIR "/rpm/%{_target}/macros", ":");
33 }
34 #else
35 macrofiles = MACROFILES;