From: Michael Prokop Date: Mon, 21 Jul 2008 23:14:23 +0000 (+0200) Subject: Fix UID check in grml-pptp-inode X-Git-Tag: 0.2.3~3 X-Git-Url: http://git.grml.org/?p=grml-network.git;a=commitdiff_plain;h=72d88edace6037b15c9a86e747f417f440bf3663 Fix UID check in grml-pptp-inode --- diff --git a/debian/changelog b/debian/changelog index 9707136..b425263 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-network (0.2.2) unstable; urgency=low + + * Fix UID check in grml-pptp-inode. + + -- Michael Prokop Tue, 22 Jul 2008 01:13:32 +0200 + grml-network (0.2.1) unstable; urgency=low * grml-bridge: remove '-e' option in dhclient call. diff --git a/sbin/grml-pptp-inode b/sbin/grml-pptp-inode index 2e6e5fa..9446067 100755 --- a/sbin/grml-pptp-inode +++ b/sbin/grml-pptp-inode @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Andreas Gredler # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Sam Jän 26 00:12:46 CET 2008 [mika] +# Latest change: Tue Jul 22 01:13:08 CEST 2008 [mika] ################################################################################ ################################################################################ @@ -15,10 +15,9 @@ export LANG=C -if [ "$UID" != 0 ]; then -# sudo $0 -# exit -echo foo +if [ $UID != 0 ] ; then + echo Error: become root before starting $0 >& 2 + exit 100 fi if [ -z "$FORCE_OLD" ] ; then