grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] grub-mkconfig: only use scripts that are executable
@ 2013-12-19 13:09 Lars Wendler
  0 siblings, 0 replies; only message in thread
From: Lars Wendler @ 2013-12-19 13:09 UTC (permalink / raw)
  To: grub-devel; +Cc: mgorny, Lars Wendler

commit ec824e0f2a399ce2ab3a2e3353d372a236595059 breaks grub-mkconfig if one of 
the pre-defined config files are not executable.

This patch fixes https://bugs.gentoo.org/494716

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
---
 util/grub-mkconfig.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
index 0ca0db1..fe33092 100644
--- a/util/grub-mkconfig.in
+++ b/util/grub-mkconfig.in
@@ -260,10 +260,12 @@ for i in "${grub_mkconfig_dir}"/* ; do
       | "${grub_mkconfig_dir}"/30_os-prober \
       | "${grub_mkconfig_dir}"/40_custom \
       | "${grub_mkconfig_dir}"/41_custom)
+          if test -x "$i" ; then
 	      echo
               echo "### BEGIN $i ###"
               "$i"
               echo "### END $i ###"
+          fi
       ;;
     # emacsen backup files. FIXME: support other editors
     *~) ;;
-- 
1.8.5.2



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-12-19 17:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-19 13:09 [PATCH] grub-mkconfig: only use scripts that are executable Lars Wendler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).