You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2007/02/14 13:16:12 UTC

svn commit: r507505 - /spamassassin/trunk/spamd-apache2/bin/apache-spamd.pl

Author: jm
Date: Wed Feb 14 04:16:11 2007
New Revision: 507505

URL: http://svn.apache.org/viewvc?view=rev&rev=507505
Log:
bug 5328: always use an absolute path for the apache-spamd PidFile setting, thanks to Radoslaw Zielinski

Modified:
    spamassassin/trunk/spamd-apache2/bin/apache-spamd.pl

Modified: spamassassin/trunk/spamd-apache2/bin/apache-spamd.pl
URL: http://svn.apache.org/viewvc/spamassassin/trunk/spamd-apache2/bin/apache-spamd.pl?view=diff&rev=507505&r1=507504&r2=507505
==============================================================================
--- spamassassin/trunk/spamd-apache2/bin/apache-spamd.pl (original)
+++ spamassassin/trunk/spamd-apache2/bin/apache-spamd.pl Wed Feb 14 04:16:11 2007
@@ -88,6 +88,7 @@
   if -w '/var/run/' && -x _ && !-e '/var/run/apache-spamd.pid';
 die "ERROR: --pidfile is mandatory\n"    # this seems ugly, but has advantages
   unless $opt->{pidfile};                # we won't be able to stop otherwise
+$opt->{pidfile} = File::Spec->rel2abs($opt->{pidfile});
 if (-d $opt->{pidfile}) {
 	die "ERROR: can't write pid, '$opt->{pidfile}' directory not writable\n"
 	  unless -x _ && -w _;