aboutsummaryrefslogtreecommitdiffstats
path: root/iurt_root_command
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-04-15 12:45:28 +0000
committerMichael Scherer <misc@mageia.org>2011-04-15 12:45:28 +0000
commit91c573f2ad0609ab55e7359ac431d373c02488fc (patch)
tree120ed37989be2822fb27bbe0cd534c44b7489d4b /iurt_root_command
parent97f18f7be92ae1cc344a77d58a8bf26e39f0db9f (diff)
downloadiurt-91c573f2ad0609ab55e7359ac431d373c02488fc.tar
iurt-91c573f2ad0609ab55e7359ac431d373c02488fc.tar.gz
iurt-91c573f2ad0609ab55e7359ac431d373c02488fc.tar.bz2
iurt-91c573f2ad0609ab55e7359ac431d373c02488fc.tar.xz
iurt-91c573f2ad0609ab55e7359ac431d373c02488fc.zip
- use grep instead of any, as this is builtin
Diffstat (limited to 'iurt_root_command')
-rwxr-xr-xiurt_root_command3
1 files changed, 1 insertions, 2 deletions
diff --git a/iurt_root_command b/iurt_root_command
index 417ebc8..9db3404 100755
--- a/iurt_root_command
+++ b/iurt_root_command
@@ -30,7 +30,6 @@ use File::NCopy qw(copy);
use Iurt::Util qw(plog_init plog);
use Cwd 'realpath';
use File::Path qw(make_path);
-use List::MoreUtils qw(any);
my $arg = @ARGV;
my (@params, %run);
@@ -378,7 +377,7 @@ sub untar {
return;
}
check_path_authorized($file) && check_path_authorized($dir) or return;
- if (any { /^-/ } @o_files) {
+ if (grep { /^-/ } @o_files) {
plog('FAIL', "untar: options forbidden");
return;
}