]> git.pld-linux.org Git - packages/amavisd-new.git/commitdiff
Patch from Radoslaw Zielinski to fix error with regular expressions reading
authorJacek Rzęsista <jasio@jcentrum.net>
Wed, 18 Jun 2003 08:45:58 +0000 (08:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
files list from dir

Changed files:
    amavisd-new-bin.patch -> 1.1

amavisd-new-bin.patch [new file with mode: 0644]

diff --git a/amavisd-new-bin.patch b/amavisd-new-bin.patch
new file mode 100644 (file)
index 0000000..0c6be87
--- /dev/null
@@ -0,0 +1,30 @@
+--- amavisd-new-20030314/amavisd       Tue Jun 17 18:50:14 2003
++++ amavisd    Tue Jun 17 21:13:43 2003
+@@ -7224,7 +7224,7 @@
+       ($scan_status,$output,$virusnames) = &$command(@_);
+     } else {
+       my(@args) = split(' ',$args);
+-      if (grep { m[^({}/)?\*$] } @args) {  # must list each file individually
++      if (grep { m#^({}/)?\*$# } @args) {  # must list each file individually
+           local(*DIR); my($f); my(@bare_fnames);
+           opendir(DIR, "$tempdir/parts")
+               or die "Can't open directory $tempdir/parts: $!";
+@@ -7241,10 +7241,15 @@
+           }
+           closedir(DIR) or die "$av_name: Can't close directory: $!";
+           # replace * with bare file name
+-          for my $a (@args)
+-              { $a =~ s[^({}/)?\*$][ join(' ', map {$1.$_} @bare_fnames) ]e }
++# don't use $a: perldoc -f sort
++#         for my $a (@args)
++#             { $a =~ s#^({}/)?\*$# join(' ', map {$1.$_} @bare_fnames) #e }
++          @args = map {
++                  s#^({}/)?\*$# join(' ', map {$1.$_} @bare_fnames) #e;
++                  split / +/;
++          } @args;
+       }
+-      for (@args) { s[{}][$tempdir/parts]g } # replace {} with directory name
++      for (@args) { s#{}#$tempdir/parts#g } # replace {} with directory name
+       # NOTE: RAV does not like '</dev/null' in its command!
+       do_log(2, "Using $av_name: " . join(' ',$command,@args));
+       my($proc_fh) = run_command(undef, "&1", $command, @args);
This page took 0.073565 seconds and 4 git commands to generate.