~ubuntu-branches/ubuntu/trusty/grub2/trusty-updates

« back to all changes in this revision

Viewing changes to debian/patches/907_grub.cfg_400.diff

Tags: upstream-1.99~20101122
ImportĀ upstreamĀ versionĀ 1.99~20101122

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Index: util/grub-mkconfig.in
2
 
===================================================================
3
 
--- util/grub-mkconfig.in       (revision 2598)
4
 
+++ util/grub-mkconfig.in       (working copy)
5
 
@@ -261,6 +261,10 @@ for i in ${grub_mkconfig_dir}/* ; do
6
 
   esac
7
 
 done
8
 
 
9
 
+if [ "x${grub_cfg}" != "x" ] && ! grep -q "^password " ${grub_cfg}.new ; then
10
 
+  chmod 444 ${grub_cfg}.new || true
11
 
+fi
12
 
+
13
 
 if test "x${grub_cfg}" != "x" ; then
14
 
   # none of the children aborted with error, install the new grub.cfg
15
 
   mv -f ${grub_cfg}.new ${grub_cfg}