[util-linux-ng] 2.18-3: fix #620924

kzak kzak at fedoraproject.org
Thu Aug 5 09:49:04 UTC 2010


commit f5753f26bf819b2610b302d343e283e3e2d4b705
Author: Karel Zak <kzak at redhat.com>
Date:   Thu Aug 5 11:47:58 2010 +0200

    2.18-3: fix #620924
    
    Signed-off-by: Karel Zak <kzak at redhat.com>

 mount.tmpfs        |    4 +---
 util-linux-ng.spec |    5 ++++-
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/mount.tmpfs b/mount.tmpfs
index 4fc7e60..5495c9d 100644
--- a/mount.tmpfs
+++ b/mount.tmpfs
@@ -19,10 +19,8 @@ case $1 in
 esac
 
 restricted=1
-ruid=$(id --user --real)
-euid=$(id --user)
 
-if [ $ruid -eq 0 ] && [ $ruid -eq $euid ]; then
+if [ $UID -eq 0 ] && [ $UID -eq $EUID ]; then
   restricted=0
 fi
 
diff --git a/util-linux-ng.spec b/util-linux-ng.spec
index eb112ea..846dbe9 100644
--- a/util-linux-ng.spec
+++ b/util-linux-ng.spec
@@ -2,7 +2,7 @@
 Summary: A collection of basic system utilities
 Name: util-linux-ng
 Version: 2.18
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2 and GPLv2+ and GPLv3+ and LGPLv2+ and BSD with advertising and Public Domain
 Group: System Environment/Base
 URL: ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng
@@ -765,6 +765,9 @@ fi
 
 
 %changelog
+* Thu Aug  5 2010 Karel Zak <kzak at redhat.com> 2.18-3
+- fix #620924 - /sbin/mount.tmpfs uses not available /usr/bin/id
+
 * Mon Aug  2 2010 Karel Zak <kzak at redhat.com> 2.18-2
 - fix #615719 - tmpfs mount fails with 'user' option.
 - fix #598631 - shutdown, reboot, halt and C-A-D don't work


More information about the scm-commits mailing list