Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Oct 2010 10:39:11 GMT
From:      Alexander Milanov <a@amilanov.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/151515: Wrong chmod for fetchmailrc in port mail/fetchmail
Message-ID:  <201010171039.o9HAdBvZ096401@www.freebsd.org>
Resent-Message-ID: <201010171040.o9HAe8Ot075468@freefall.freebsd.org>

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

>Number:         151515
>Category:       ports
>Synopsis:       Wrong chmod for fetchmailrc in port mail/fetchmail
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 17 10:40:08 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Milanov
>Release:        8.1-RELEASE
>Organization:
>Environment:
FreeBSD test.example.com 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Fetchmail installed from the ports and started as is complains about the file mod of fetchmailrc ("File /usr/local/etc/fetchmailrc must have no more than -rwx------ (0700) permissions.") and exits.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: mail/fetchmail/Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/fetchmail/Makefile,v
retrieving revision 1.210
diff -u -r1.210 Makefile
--- mail/fetchmail/Makefile	31 May 2010 01:59:40 -0000	1.210
+++ mail/fetchmail/Makefile	23 Aug 2010 14:59:10 -0000
@@ -126,7 +126,7 @@
 	${INSTALL} -m 644 -o fetchmail -g fetchmail ${FILESDIR}/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc.sample
 	if [ ! -f ${PREFIX}/etc/fetchmailrc ]; then \
 		${CP} -p ${PREFIX}/etc/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc ; \
-		${CHMOD} 640 ${PREFIX}/etc/fetchmailrc ; \
+		${CHMOD} 600 ${PREFIX}/etc/fetchmailrc ; \
 	fi
 
 	@${ECHO_CMD} ""


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



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