diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-10-03 18:46:24 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-10-03 18:46:24 +0000 |
commit | 8c29de197a8684769c410f06cc797de129c1ef10 (patch) | |
tree | 2bab21bfcfefb4248a9c706e6ab9a09e41e96c10 /security/drweb-sendmail | |
parent | Set DIST_SUBDIR to `ghostscript'. (diff) |
Fix socket permissions and startup race condition
Notes
Notes:
svn path=/head/; revision=48411
Diffstat (limited to 'security/drweb-sendmail')
-rw-r--r-- | security/drweb-sendmail/Makefile | 2 | ||||
-rw-r--r-- | security/drweb-sendmail/files/patch-af | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/security/drweb-sendmail/Makefile b/security/drweb-sendmail/Makefile index 1030fe022a36..3537fa6a54dd 100644 --- a/security/drweb-sendmail/Makefile +++ b/security/drweb-sendmail/Makefile @@ -7,7 +7,7 @@ PORTNAME= drweb_sendmail PORTVERSION= 4.26 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= security mail MASTER_SITES= http://www.drweb.ru/ftp/web_pub/ DISTNAME= drwebd-${PORTVERSION}-freebsd4 diff --git a/security/drweb-sendmail/files/patch-af b/security/drweb-sendmail/files/patch-af new file mode 100644 index 000000000000..5cd3304133c4 --- /dev/null +++ b/security/drweb-sendmail/files/patch-af @@ -0,0 +1,22 @@ +--- ../sendmail/template.initscript.orig Wed Sep 26 01:02:29 2001 ++++ ../sendmail/template.initscript Wed Oct 3 22:36:07 2001 +@@ -13,7 +13,7 @@ + # Use these if cannot found functions + dw_daemon() { + ulimit -c 0 +- $* & ++ $* + return $? + } + +@@ -105,9 +105,7 @@ + RETVAL=$? + if [ $RETVAL -eq 0 ] ; then + [ $FILTER_UNIX = "yes" ] && rm -f $FILTER_SOCKET +- if [ "x$DAEMON_PID" != "x" ] ; then +- sleep 1 +- fi ++ [ $DAEMON_UNIX = "yes" ] && chmod 660 $DAEMON_SOCKET + $PROC_DAEMON $FILTER_CMD + RETVAL=$? + fi |