From c514d5382b0ff30beebdc422fcb37c27e2daf729 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 2 Jan 2008 12:58:08 +0000 Subject: really fix comparison operator :) --- iurt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iurt2') 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}"); -- cgit v1.2.1