[maemo-commits] [maemo-commits] r15755 - in projects/haf/trunk/osso-app-killer: debian src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Jul 10 16:28:34 EEST 2008
Author: schulhof
Date: 2008-07-10 16:28:32 +0300 (Thu, 10 Jul 2008)
New Revision: 15755

Modified:
   projects/haf/trunk/osso-app-killer/debian/changelog
   projects/haf/trunk/osso-app-killer/src/osso-app-killer-rfs.sh
Log:
  * Need to use $(id -u) -eq 0 to check for root, rather than "x$USER" = "xroot"


Modified: projects/haf/trunk/osso-app-killer/debian/changelog
===================================================================
--- projects/haf/trunk/osso-app-killer/debian/changelog	2008-07-10 11:27:39 UTC (rev 15754)
+++ projects/haf/trunk/osso-app-killer/debian/changelog	2008-07-10 13:28:32 UTC (rev 15755)
@@ -1,3 +1,9 @@
+osso-app-killer (1.21-1) unstable; urgency=low
+
+  * Need to use $(id -u) -eq 0 to check for root, rather than "x$USER" = "xroot"
+
+ -- Gabriel Schulhof <gabriel.schulhof at nokia.com>  Thu, 10 Jul 2008 16:18:46 +0300
+
 osso-app-killer (1.20-1) unstable; urgency=low
 
   * Restore locale from /usr/share/osso-af-startup/locale.orig, not from

Modified: projects/haf/trunk/osso-app-killer/src/osso-app-killer-rfs.sh
===================================================================
--- projects/haf/trunk/osso-app-killer/src/osso-app-killer-rfs.sh	2008-07-10 11:27:39 UTC (rev 15754)
+++ projects/haf/trunk/osso-app-killer/src/osso-app-killer-rfs.sh	2008-07-10 13:28:32 UTC (rev 15755)
@@ -23,7 +23,7 @@
 
 DIR=/etc/osso-af-init
 
-if [ "x$USER" = "xroot" ]; then
+if test $(id -u) -eq 0; then
   echo "$0: Error, I'm root"
   exit 1
 fi


More information about the maemo-commits mailing list