aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
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}");