diff options
Diffstat (limited to 'rurpmi')
-rw-r--r-- | rurpmi | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,6 +2,7 @@ use strict; use urpm::msg; +use urpm::util qw(untaint); if ($< != 0) { print STDERR N("Only superuser is allowed to install packages"), "\n"; @@ -12,4 +13,4 @@ $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"; -exec '/usr/bin/perl', '/usr/sbin/urpmi', '--restricted', @ARGV; +exec '/usr/bin/perl', '/usr/sbin/urpmi', '--restricted', map { untaint $_ } @ARGV; |