From 3f88e7a02bb1a3182f1d404740d99cc02ca840bb Mon Sep 17 00:00:00 2001 From: Gustavo De Nardin Date: Thu, 27 Dec 2007 21:57:38 +0000 Subject: - fixed comparison operator --- iurt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iurt2 b/iurt2 index 582c34a..58f3899 100755 --- a/iurt2 +++ b/iurt2 @@ -652,7 +652,7 @@ if ($run{use_cache}) { $run{daydate} = $daydate; plog('DEBUG', "using $run{run} as chroot extension"); $run{user} ||= $ENV{USER}; -die "Iurt should not be executed as root." if $run{user} == "root"; +die "Iurt should not be executed as root." if $run{user} =~ "root"; $run{uid} = getpwnam $run{user}; plog('DEBUG', "using local user $run{user}, id $run{uid}"); -- cgit v1.2.1