Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 May 2014 13:59:07 GMT
From:      Trond Endrestøl <Trond.Endrestol@ximalas.info>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/190005: mail/spamassassin's /usr/local/etc/rc.d/sa-spamd r349854 incorrectly assumes the existence of the directory /var/run/${name}, i.e. /var/run/spamd
Message-ID:  <201405201359.s4KDx78E073847@cgiserv.freebsd.org>
Resent-Message-ID: <201405201400.s4KE0171004203@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         190005
>Category:       ports
>Synopsis:       mail/spamassassin's /usr/local/etc/rc.d/sa-spamd r349854 incorrectly assumes the existence of the directory /var/run/${name}, i.e. /var/run/spamd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 20 14:00:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Trond Endrestøl
>Release:        9.3-PRERELEASE
>Organization:
Private
>Environment:
FreeBSD enterprise.ximalas.info 9.3-PRERELEASE FreeBSD 9.3-PRERELEASE #0 r266433: Mon May 19 13:23:21 CEST 2014     root@enterprise.ximalas.info:/usr/obj/usr/src/sys/ENTERPRISEVT  amd64
>Description:
mail/spamassassin's /usr/local/etc/rc.d/sa-spamd r349854 incorrectly assumes the existence of the directory /var/run/${name}, i.e. /var/run/spamd.

If /var/run/spamd happens to be removed during deinstall, then it should be the responsibility of the port to create this directory during install.
>How-To-Repeat:
Install mail/spamassassin.
Forcefully upgrade mail/spamassassin, e.g. portupgrade -f mail/spamassassin.
Notice the absence of the directory /var/run/spamd.
>Fix:
Augment head/mail/spamassassin/files/sa-spamd.in to check if /var/run/${name}, i.e. /var/run/spamd exists, creating this directory if necessary as part of the start and restart sequences.

As an alternative, augment head/mail/spamassassin/pkg-plist to create /var/run/spamd during install.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405201359.s4KDx78E073847>