From cf919b18788df5ed01b43018941c262a51596dfe Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Wed, 14 Jan 2004 19:31:03 +0000 Subject: $root =~ s!/*!! to avoid root detection issue --- urpme | 3 +++ 1 file changed, 3 insertions(+) (limited to 'urpme') diff --git a/urpme b/urpme index 1d6efb9c..59f1a610 100644 --- a/urpme +++ b/urpme @@ -68,6 +68,9 @@ while (defined($_ = shift @ARGV)) { push @l, $_; } +# We assume --root / is stupid (P. Terjan idea) +$root =~ s!^/*$!!; + my $urpm = new urpm; my $state = {}; -- cgit v1.2.1