diff options
Diffstat (limited to 'iurt_root_command')
-rw-r--r-- | iurt_root_command | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/iurt_root_command b/iurt_root_command index c88a932..0effdef 100644 --- a/iurt_root_command +++ b/iurt_root_command @@ -197,7 +197,11 @@ sub rm { print {$run->{LOG}} "$program_name: removal of $f forbidden\n"; $ok = 0 } else { - if ($f =~ /\*\?/) { + # The original regexp was /\*?/, which doesn't seem to be + # what we want. Check if we can always glob instead of + # testing, or if glob expansion is needed at all --claudio + + if ($f =~ /[*?]/) { foreach my $file (glob $f) { if ($f =~ m,$unauthorized,) { print {$run->{LOG}} "$program_name: removal of $f forbidden\n"; |