patch-bin_mailscanner_create_locks 849 B

123456789101112131415
  1. $OpenBSD: patch-bin_mailscanner_create_locks,v 1.1 2009/01/28 15:16:17 sthen Exp $
  2. --- bin/mailscanner_create_locks.orig Sun Jan 11 13:38:38 2009
  3. +++ bin/mailscanner_create_locks Sun Jan 11 13:38:58 2009
  4. @@ -26,8 +26,8 @@ unless (-d _) {
  5. # Now work through all the virus scanner autoupdate names, building Lock files.
  6. my($dh, $fh, $updatename, $lockname, @updatenames, @locknames);
  7. -$dh = new DirHandle "/opt/MailScanner/lib";
  8. -die "Can't read dir /opt/MailScanner/lib to build list of -autoupdate scripts, $!" unless $dh;
  9. +$dh = new DirHandle "%PREFIX%/libexec/MailScanner";
  10. +die "Can't read dir %PREFIX%/libexec/MailScanner to build list of -autoupdate scripts, $!" unless $dh;
  11. while (defined($updatename = $dh->read)) {
  12. next unless $updatename =~ s/-autoupdate$//;
  13. next unless $updatename =~ /^[a-z0-9_-]+$/i; # No nasty chars thanks!