Mailing List Archive

svn commit: r109560 - /spamassassin/trunk/spamd/spamd.raw
Author: jm
Date: Thu Dec 2 13:53:57 2004
New Revision: 109560

URL: http://svn.apache.org/viewcvs?view=rev&rev=109560
Log:
another attempt to sanity-check this freebsd wierdness
Modified:
spamassassin/trunk/spamd/spamd.raw

Modified: spamassassin/trunk/spamd/spamd.raw
Url: http://svn.apache.org/viewcvs/spamassassin/trunk/spamd/spamd.raw?view=diff&rev=109560&p1=spamassassin/trunk/spamd/spamd.raw&r1=109559&p2=spamassassin/trunk/spamd/spamd.raw&r2=109560
==============================================================================
--- spamassassin/trunk/spamd/spamd.raw (original)
+++ spamassassin/trunk/spamd/spamd.raw Thu Dec 2 13:53:57 2004
@@ -681,6 +681,11 @@
$server = new IO::Socket::UNIX(%socket)
|| die "Could not create UNIX socket on $path: $! ($@)\n";

+ # sanity check!
+ if (!-S $path) {
+ die "Could not find newly-created UNIX socket on $path: $! ($@)\n";
+ }
+
my $mode = $opt{socketmode};
if ($mode) {
$mode = oct $mode;
@@ -706,6 +711,11 @@
if (!chown $uid, $gid, $path) {
die "Could not chown $path to $uid/$gid: $! ($@)";
}
+ }
+
+ # sanity check!
+ if (!-S $path) {
+ die "Could not find newly-created UNIX socket (2) on $path: $! ($@)\n";
}

if (!chmod $mode, $path) { # make sure everybody can talk to it