~ubuntu-branches/ubuntu/utopic/spamassassin/utopic-updates

« back to all changes in this revision

Viewing changes to .pc/55_disable_nagios_epm/sa-check_spamd.raw

  • Committer: Package Import Robot
  • Author(s): Noah Meyerhans
  • Date: 2014-02-14 22:45:15 UTC
  • mfrom: (0.8.1) (0.6.2) (5.1.22 sid)
  • Revision ID: package-import@ubuntu.com-20140214224515-z1es2twos8xh7n2y
Tags: 3.4.0-1
* New upstream version! (Closes: 738963, 738872, 738867)
* Scrub the environment when switching to the debian-spamd user in
  postinst and cron.daily. (Closes: 738951)
* Enhancements to postinst to better manage ownership of
  /var/lib/spamassassin, via Iain Lane <iain.lane@canonical.com>
  (Closes: 738974)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
# Written by Daryl C. W. O'Shea, DOS Technologies <spamassassin@dostech.ca>
25
25
# See  perldoc sa-check_spamd  for program info.
26
26
 
 
27
use strict;
 
28
use warnings;
 
29
use re 'taint';
 
30
 
27
31
my $PREFIX          = '@@PREFIX@@';             # substituted at 'make' time
28
32
my $DEF_RULES_DIR   = '@@DEF_RULES_DIR@@';      # substituted at 'make' time
29
33
my $LOCAL_RULES_DIR = '@@LOCAL_RULES_DIR@@';    # substituted at 'make' time
30
34
my $LOCAL_STATE_DIR = '@@LOCAL_STATE_DIR@@';    # substituted at 'make' time
31
35
use lib '@@INSTALLSITELIB@@';                   # substituted at 'make' time
32
36
 
33
 
use strict;
34
 
use warnings;
35
 
use re 'taint';
36
 
 
37
37
use Errno qw(EBADF);
38
38
use File::Spec;
39
39
use Config;
114
114
}
115
115
 
116
116
if (defined $opt{'hostname'}) {
117
 
  if ($opt{'hostname'} =~ /^([A-Za-z0-9_.-]+)$/) {
 
117
  if ($opt{'hostname'} =~ /^([A-Za-z0-9_.:-]+)$/) {
118
118
    $opt{'hostname'} = $1;
119
119
  } else {
120
120
    print "SPAMD UNKNOWN: invalid hostname config value provided\n";