aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-01-02 12:58:08 +0000
committerOlivier Blin <oblin@mandriva.com>2008-01-02 12:58:08 +0000
commitc514d5382b0ff30beebdc422fcb37c27e2daf729 (patch)
treebf11c66aa8a7f9f201b056336b0371a9a0830f21 /iurt2
parent3f88e7a02bb1a3182f1d404740d99cc02ca840bb (diff)
downloadiurt-c514d5382b0ff30beebdc422fcb37c27e2daf729.tar
iurt-c514d5382b0ff30beebdc422fcb37c27e2daf729.tar.gz
iurt-c514d5382b0ff30beebdc422fcb37c27e2daf729.tar.bz2
iurt-c514d5382b0ff30beebdc422fcb37c27e2daf729.tar.xz
iurt-c514d5382b0ff30beebdc422fcb37c27e2daf729.zip
really fix comparison operator :)
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt22
1 files changed, 1 insertions, 1 deletions
diff --git a/iurt2 b/iurt2
index 58f3899..3ea2af4 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} eq "root";
$run{uid} = getpwnam $run{user};
plog('DEBUG', "using local user $run{user}, id $run{uid}");