]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-06-16 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Mon, 16 Jun 2008 20:29:55 +0000 (20:29 +0000)
committerrobertmh <robertmh@localhost>
Mon, 16 Jun 2008 20:29:55 +0000 (20:29 +0000)
        * util/update-grub.in: Check for $EUID instead of $UID.
        Reported by Vincent Zweije.

ChangeLog
util/update-grub.in

index ea17524f35f4a7e6fac634c3fd15d7e8c57e8cec..2ef74c20f8e6dfe50e095ec57e64e93ceb4de111 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-16  Robert Millan  <rmh@aybabtu.com>
+
+       * util/update-grub.in: Check for $EUID instead of $UID.
+       Reported by Vincent Zweije.
+
 2008-06-16  Bean  <bean123ch@gmail.com>
 
        * fs/ext2.c (grub_ext2_blockgroup): Revert to pre journal state.
index 84a5e1852e64755f6b8572e141023790fe0cef7f..c78444e197ed9c177051592d573c41e02066277a 100644 (file)
@@ -68,11 +68,11 @@ done
 
 . ${libdir}/grub/update-grub_lib
 
-if [ "x$UID" = "x" ] ; then
-  UID=`id -u`
+if [ "x$EUID" = "x" ] ; then
+  EUID=`id -u`
 fi
 
-if [ "$UID" != 0 ] ; then
+if [ "$EUID" != 0 ] ; then
   echo "$0: You must run this as root" >&2
   exit 1
 fi