diff options
Diffstat (limited to 'meta/recipes-devtools/rpm/files/0001-Do-not-read-config-files-from-HOME.patch')
-rw-r--r-- | meta/recipes-devtools/rpm/files/0001-Do-not-read-config-files-from-HOME.patch | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/meta/recipes-devtools/rpm/files/0001-Do-not-read-config-files-from-HOME.patch b/meta/recipes-devtools/rpm/files/0001-Do-not-read-config-files-from-HOME.patch index 796088df53..bfc9a74b6c 100644 --- a/meta/recipes-devtools/rpm/files/0001-Do-not-read-config-files-from-HOME.patch +++ b/meta/recipes-devtools/rpm/files/0001-Do-not-read-config-files-from-HOME.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From e210458d125793915abce30420d866a30305c37a Mon Sep 17 00:00:00 2001 | 1 | From 874679725c443e5d73e3a33d1158ab25442c8a5f Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Tue, 10 Jan 2017 14:11:30 +0200 | 3 | Date: Tue, 10 Jan 2017 14:11:30 +0200 |
4 | Subject: [PATCH] Do not read config files from $HOME | 4 | Subject: [PATCH] Do not read config files from $HOME |
@@ -10,26 +10,26 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
10 | 1 file changed, 2 insertions(+), 4 deletions(-) | 10 | 1 file changed, 2 insertions(+), 4 deletions(-) |
11 | 11 | ||
12 | diff --git a/lib/rpmrc.c b/lib/rpmrc.c | 12 | diff --git a/lib/rpmrc.c b/lib/rpmrc.c |
13 | index 9437a0ff1..483585ae4 100644 | 13 | index 5d778b8b7..dc8d42aeb 100644 |
14 | --- a/lib/rpmrc.c | 14 | --- a/lib/rpmrc.c |
15 | +++ b/lib/rpmrc.c | 15 | +++ b/lib/rpmrc.c |
16 | @@ -459,8 +459,7 @@ static void setDefaults(void) | 16 | @@ -485,8 +485,7 @@ static void setDefaults(void) |
17 | if (!defrcfiles) { | 17 | if (!defrcfiles) { |
18 | defrcfiles = rstrscat(NULL, confdir, "/rpmrc", ":", | 18 | defrcfiles = rstrscat(NULL, confdir, "/rpmrc", ":", |
19 | confdir, "/" RPM_VENDOR "/rpmrc", ":", | 19 | confdir, "/" RPM_VENDOR "/rpmrc", ":", |
20 | - SYSCONFDIR "/rpmrc", ":", | 20 | - SYSCONFDIR "/rpmrc", ":", |
21 | - "~/.rpmrc", NULL); | 21 | - userrc, NULL); |
22 | + SYSCONFDIR "/rpmrc", NULL); | 22 | + SYSCONFDIR "/rpmrc", NULL); |
23 | } | 23 | } |
24 | 24 | ||
25 | #ifndef MACROFILES | 25 | /* macrofiles may be pre-set from --macros */ |
26 | @@ -472,8 +471,7 @@ static void setDefaults(void) | 26 | @@ -498,8 +497,7 @@ static void setDefaults(void) |
27 | confdir, "/" RPM_VENDOR "/macros", ":", | 27 | confdir, "/" RPM_VENDOR "/macros", ":", |
28 | SYSCONFDIR "/rpm/macros.*", ":", | 28 | SYSCONFDIR "/rpm/macros.*", ":", |
29 | SYSCONFDIR "/rpm/macros", ":", | 29 | SYSCONFDIR "/rpm/macros", ":", |
30 | - SYSCONFDIR "/rpm/%{_target}/macros", ":", | 30 | - SYSCONFDIR "/rpm/%{_target}/macros", ":", |
31 | - "~/.rpmmacros", NULL); | 31 | - usermacros, NULL); |
32 | + SYSCONFDIR "/rpm/%{_target}/macros", NULL); | 32 | + SYSCONFDIR "/rpm/%{_target}/macros", NULL); |
33 | } | 33 | } |
34 | #else | 34 | |
35 | macrofiles = MACROFILES; | 35 | free(usermacros); |