Commit 89224b00 authored by Colin Watson's avatar Colin Watson

Make grub.cfg world-readable if it contains no passwords

Patch-Name: grub.cfg_400.patch
parent 63a4f23b
......@@ -265,6 +265,10 @@ for i in "${grub_mkconfig_dir}"/* ; do
esac
done
if [ "x${grub_cfg}" != "x" ] && ! grep "^password" ${grub_cfg}.new >/dev/null; then
chmod 444 ${grub_cfg}.new || true
fi
if test "x${grub_cfg}" != "x" ; then
if ! ${grub_script_check} ${grub_cfg}.new; then
# TRANSLATORS: %s is replaced by filename
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment