2008-06-16 Robert Millan <rmh@aybabtu.com>
* util/update-grub.in: Check for $EUID instead of $UID. Reported by Vincent Zweije.
This commit is contained in:
parent
d31a32a14c
commit
991477f8a7
2 changed files with 8 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue