From 36db008cb5eaf7a8918d70c99982818acee6a645 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Wed, 28 Mar 2012 17:30:56 +0200 Subject: [PATCH] adjust netconf for new su behaviour reported and debugged by Ryan Lie, tracker item 594. --- commands/netconf/netconf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/netconf/netconf.sh b/commands/netconf/netconf.sh index 848be483d..c435379af 100644 --- a/commands/netconf/netconf.sh +++ b/commands/netconf/netconf.sh @@ -338,7 +338,7 @@ if [ -n "$prefix" ] ; then fi fi -if [ "$USER" != root ] ; then +if [ `whoami` != root ] ; then test "$v" = 1 && echo "Please run netconf as root." exit 1 fi -- 2.44.0