From: | "Lars Wendler (polynomial-c)" <polynomial-c@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-boot/grub/files: grub-2.02_beta1-only-use-scripts-that-are-executable.patch |
Date: | Mon, 23 Dec 2013 20:56:25 |
Message-Id: | 20131223205621.3FD772004E@flycatcher.gentoo.org |
1 | polynomial-c 13/12/23 20:56:21 |
2 | |
3 | Added: |
4 | grub-2.02_beta1-only-use-scripts-that-are-executable.patch |
5 | Log: |
6 | Let grub-mkconfig only use scripts that are executable (bug #494716) |
7 | |
8 | (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
9 | |
10 | Revision Changes Path |
11 | 1.1 sys-boot/grub/files/grub-2.02_beta1-only-use-scripts-that-are-executable.patch |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/grub/files/grub-2.02_beta1-only-use-scripts-that-are-executable.patch?rev=1.1&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/grub/files/grub-2.02_beta1-only-use-scripts-that-are-executable.patch?rev=1.1&content-type=text/plain |
15 | |
16 | Index: grub-2.02_beta1-only-use-scripts-that-are-executable.patch |
17 | =================================================================== |
18 | From b8ff36598b7c77d85984b5cb6b5f95a0b679dd52 Mon Sep 17 00:00:00 2001 |
19 | From: Lars Wendler <polynomial-c@g.o> |
20 | Date: Thu, 19 Dec 2013 14:04:23 +0100 |
21 | Subject: [PATCH] grub-mkconfig: only use scripts that are executable |
22 | |
23 | commit ec824e0f2a399ce2ab3a2e3353d372a236595059 breaks grub-mkconfig if one of |
24 | the pre-defined config files are not executable. |
25 | |
26 | This patch fixes https://bugs.gentoo.org/494716 |
27 | |
28 | Signed-off-by: Lars Wendler <polynomial-c@g.o> |
29 | --- |
30 | util/grub-mkconfig.in | 2 ++ |
31 | 1 file changed, 2 insertions(+) |
32 | |
33 | diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in |
34 | index 0ca0db1..fe33092 100644 |
35 | --- a/util/grub-mkconfig.in |
36 | +++ b/util/grub-mkconfig.in |
37 | @@ -260,10 +260,12 @@ for i in "${grub_mkconfig_dir}"/* ; do |
38 | | "${grub_mkconfig_dir}"/30_os-prober \ |
39 | | "${grub_mkconfig_dir}"/40_custom \ |
40 | | "${grub_mkconfig_dir}"/41_custom) |
41 | + if test -x "$i" ; then |
42 | echo |
43 | echo "### BEGIN $i ###" |
44 | "$i" |
45 | echo "### END $i ###" |
46 | + fi |
47 | ;; |
48 | # emacsen backup files. FIXME: support other editors |
49 | *~) ;; |
50 | -- |
51 | 1.8.5.2 |