~ubuntu-branches/ubuntu/lucid/mailscanner/lucid

« back to all changes in this revision

Viewing changes to lib/avast-autoupdate

  • Committer: Bazaar Package Importer
  • Author(s): Simon Walter
  • Date: 2009-01-20 22:23:36 UTC
  • mfrom: (1.1.9 upstream) (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20090120222336-3u0p4b7ps0ht3mgr
Tags: 4.74.16-1
* New upstream release (Closes: #506353)
  Fixes symlink vulnerability CVE-2008-5312, CVE-2008-5313, CVE-2008-5140
* Added new description to install MailScanner with sendmail and queue aging
  README.sendmail.2 thanks to Jim Barber
* Fixed patch for exim installation (Closes: #512338)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
$PackageDir = shift || "/usr";
15
15
 
16
 
$LogFile = "/tmp/Avast.update.log";
17
 
 
18
16
$AvastUpdateCommand = "$PackageDir/bin/avastvpsupdate.sh";
19
17
 
20
 
$LockFile = "/tmp/AvastBusy.lock";
 
18
$LockFile = shift || "/var/spool/MailScanner/incoming/Locks/avastBusy.lock";
21
19
 
22
20
$LOCK_SH = 1;
23
21
$LOCK_EX = 2;
65
63
 
66
64
sub UnlockAvast {
67
65
        print LOCK "Unlocked after updating Avast definitions by $$\n";
68
 
        unlink $LockFile;
69
66
        flock(LOCK, $LOCK_UN);
70
67
        close LOCK;
71
68
}