Date: Thu, 02 Aug 2012 14:22:12 +0900 From: Takefu <takefu@airport.fm> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/170320: [PATCH] usr.sbin/adduser/rmuser.sh It remains without erasing file `.*.cache' Message-ID: <501A0E84.7020001@airport.fm> Resent-Message-ID: <201208020530.q725UBB1069191@freefall.freebsd.org> In-Reply-To: <20120802022100.68CB8D3AC1C@ae-osaka.co.jp> References: <20120802022100.68CB8D3AC1C@ae-osaka.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
>Number: 170320 >Category: misc >Synopsis: [PATCH] usr.sbin/adduser/rmuser.sh It remains without erasing file `.*.cache' >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Aug 02 05:30:11 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Takefu >Release: FreeBSD 8.2-RELEASE-p9 >Organization: FOX Amateur Radio Club >Environment: >Description: `.*.cache' is made when setting it with MUA in the mail spool of preserve. It was deleted to remain without erasing a file concerned when rmuser(1) was executed. This is a specific phenomenon generated when mail/qpopper of ports is used. >How-To-Repeat: >Fix: --- /usr/src/usr.sbin/adduser/rmuser.sh 2011-11-11 13:20:22.000000000 +0900 +++ rmuser 2012-08-02 11:14:38.000000000 +0900 @@ -91,6 +91,12 @@ verbose && echo -n " ${MAILSPOOL}/.${login}.pop" || echo -n " pop3" rm ${MAILSPOOL}/.${login}.pop + if [ -f ${MAILSPOOL}/.${login}.cache ]; then + verbose && echo '.' + verbose && echo -n " ${MAILSPOOL}/.${login}.cache" || + echo -n " pop3" + rm ${MAILSPOOL}/.${login}.cache + fi fi verbose && echo '.' } >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?501A0E84.7020001>