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

« back to all changes in this revision

Viewing changes to .pc/97_bug720499-pod-5.18/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:
29
29
# Written by Daryl C. W. O'Shea, DOS Technologies <spamassassin@dostech.ca>
30
30
# See  perldoc sa-check_spamd  for program info.
31
31
 
 
32
use strict;
 
33
use warnings;
 
34
use re 'taint';
 
35
 
32
36
my $PREFIX          = '@@PREFIX@@';             # substituted at 'make' time
33
37
my $DEF_RULES_DIR   = '@@DEF_RULES_DIR@@';      # substituted at 'make' time
34
38
my $LOCAL_RULES_DIR = '@@LOCAL_RULES_DIR@@';    # substituted at 'make' time
35
39
my $LOCAL_STATE_DIR = '@@LOCAL_STATE_DIR@@';    # substituted at 'make' time
36
40
use lib '@@INSTALLSITELIB@@';                   # substituted at 'make' time
37
41
 
38
 
use strict;
39
 
use warnings;
40
 
use re 'taint';
41
 
 
42
42
use Errno qw(EBADF);
43
43
use File::Spec;
44
44
use Config;
119
119
}
120
120
 
121
121
if (defined $opt{'hostname'}) {
122
 
  if ($opt{'hostname'} =~ /^([A-Za-z0-9_.-]+)$/) {
 
122
  if ($opt{'hostname'} =~ /^([A-Za-z0-9_.:-]+)$/) {
123
123
    $opt{'hostname'} = $1;
124
124
  } else {
125
125
    print "SPAMD UNKNOWN: invalid hostname config value provided\n";