aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
authorGustavo De Nardin <spuk@mandriva.org>2007-12-27 21:57:38 +0000
committerGustavo De Nardin <spuk@mandriva.org>2007-12-27 21:57:38 +0000
commit3f88e7a02bb1a3182f1d404740d99cc02ca840bb (patch)
treecdfae8ce3dafcc462addb67a1943e9f81264d006 /iurt2
parentce816763dd63bd002ccf6195f570ed4992220b22 (diff)
downloadiurt-3f88e7a02bb1a3182f1d404740d99cc02ca840bb.tar
iurt-3f88e7a02bb1a3182f1d404740d99cc02ca840bb.tar.gz
iurt-3f88e7a02bb1a3182f1d404740d99cc02ca840bb.tar.bz2
iurt-3f88e7a02bb1a3182f1d404740d99cc02ca840bb.tar.xz
iurt-3f88e7a02bb1a3182f1d404740d99cc02ca840bb.zip
- fixed comparison operator
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt22
1 files changed, 1 insertions, 1 deletions
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}");