summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-07-01 01:51:07 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-07-01 01:51:07 +0000
commit163afca19772aa8e9e24217ec1d96115fb811f62 (patch)
tree9e74759d971753ef3dae77b4c3be5aa1d40ccb08
parent09e6207d12f3332d52b567d1828939d3c925a939 (diff)
downloadurpmi-163afca19772aa8e9e24217ec1d96115fb811f62.tar
urpmi-163afca19772aa8e9e24217ec1d96115fb811f62.tar.gz
urpmi-163afca19772aa8e9e24217ec1d96115fb811f62.tar.bz2
urpmi-163afca19772aa8e9e24217ec1d96115fb811f62.tar.xz
urpmi-163afca19772aa8e9e24217ec1d96115fb811f62.zip
When invoked without argumnents, assume --help
-rw-r--r--rurpmi1
1 files changed, 1 insertions, 0 deletions
diff --git a/rurpmi b/rurpmi
index ba31c9d7..aa10fcb8 100644
--- a/rurpmi
+++ b/rurpmi
@@ -13,4 +13,5 @@ $ENV{PATH} = "/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin";
delete @ENV{qw(ENV BASH_ENV IFS CDPATH PERLLIB PERL5LIB PERL5OPT PERLIO PERLIO_DEBUG PERL5DB PERL_ENCODING PERL_HASH_SEED PERL_SIGNALS PERL_UNICODE)};
print STDERR N("Running urpmi in restricted mode..."), "\n";
+@ARGV or @ARGV = qw(--help);
exec '/usr/bin/perl', '/usr/sbin/urpmi', '--restricted', map { untaint $_ } @ARGV;