Parent Directory | Revision Log | Patch
--- spamassassin/trunk/spamd/spamd.raw 2004/12/02 21:52:17 109559 +++ spamassassin/trunk/spamd/spamd.raw 2004/12/02 21:53:57 109560 @@ -681,6 +681,11 @@ if ( $opt{'socketpath'} ) { $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; @@ -708,6 +713,11 @@ if ( $opt{'socketpath'} ) { } } + # 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 die "Could not chmod $path to $mode: $! ($@)"; }
infrastructure at apache.org | ViewVC Help |
Powered by ViewVC 1.1.26 |