perl/perl-5.10.1-norootcheck.patch

13 lines
554 B
Diff
Raw Permalink Normal View History

diff -Nru perl-5.10.1.orig/installperl perl-5.10.1/installperl
--- perl-5.10.1.orig/installperl 2009-08-14 00:40:10.000000000 +0200
+++ perl-5.10.1/installperl 2009-09-11 12:30:00.000000000 +0200
@@ -235,8 +235,6 @@
# Do some quick sanity checks.
-if (!$opts{notify} && $d_dosuid && $>) { die "You must run as root to install suidperl\n"; }
-
$installbin || die "No installbin directory in config.sh\n";
-d $installbin || mkpath($installbin, $opts{verbose}, 0777);
-d $installbin || $opts{notify} || die "$installbin is not a directory\n";