diff options
Diffstat (limited to 'security/cyrus-sasl/files/sasl_pwcheck.sh')
-rw-r--r-- | security/cyrus-sasl/files/sasl_pwcheck.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/security/cyrus-sasl/files/sasl_pwcheck.sh b/security/cyrus-sasl/files/sasl_pwcheck.sh index 6415442cfe8..aa2243707a4 100644 --- a/security/cyrus-sasl/files/sasl_pwcheck.sh +++ b/security/cyrus-sasl/files/sasl_pwcheck.sh @@ -1,6 +1,6 @@ #! /bin/sh # -# $NetBSD: sasl_pwcheck.sh,v 1.7 2002/02/05 06:04:40 jlam Exp $ +# $NetBSD: sasl_pwcheck.sh,v 1.8 2002/07/31 03:23:07 jlam Exp $ # # The pwcheck daemon allows UNIX password authentication with Cyrus SASL. # @@ -16,6 +16,17 @@ name="sasl_pwcheck" rcvar="${name}" command="@PREFIX@/sbin/pwcheck" command_args="& sleep 2" +start_precmd=sasl_pwcheck_precmd + +sasl_pwcheck_precmd() +{ + if [ ! -d @SASLSOCKETDIR@ ] + then + @MKDIR@ @SASLSOCKETDIR@ + @CHMOD@ 0700 @SASLSOCKETDIR@ + @CHOWN@ @CYRUS_USER@ @SASLSOCKETDIR@ + fi +} if [ -f /etc/rc.subr ] then @@ -23,5 +34,6 @@ then run_rc_command "$1" else @ECHO@ -n " ${name}" + eval ${start_precmd} ${command} ${sasl_pwcheck_flags} ${command_args} fi |