mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
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:
1 parent
d31a32a14c
commit
991477f8a7
2 files changed
+8
-3
No files matched your search
@@ -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.
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user