From 72d88edace6037b15c9a86e747f417f440bf3663 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 22 Jul 2008 01:14:23 +0200 Subject: [PATCH 1/1] Fix UID check in grml-pptp-inode --- debian/changelog | 6 ++++++ sbin/grml-pptp-inode | 9 ++++----- 2 files changed, 10 insertions(+), 5 deletions(-) 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 -- 2.1.4