From owner-cvs-all Tue Jan 22 14:54:56 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B61E537B404; Tue, 22 Jan 2002 14:54:52 -0800 (PST) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0MMsqg19740; Tue, 22 Jan 2002 14:54:52 -0800 (PST) (envelope-from iedowse) Message-Id: <200201222254.g0MMsqg19740@freefall.freebsd.org> From: Ian Dowse Date: Tue, 22 Jan 2002 14:54:52 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/ctm/ctm_rmail ctm_rmail.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG iedowse 2002/01/22 14:54:52 PST Modified files: usr.sbin/ctm/ctm_rmail ctm_rmail.c Log: The mode of files created by ctm_rmail was always 0600, even if the umask was less restrictive. This was caused by the use of mkstemp() which internally passes a mode of 0600 to open(). Fix this by explicitly chmod'ing the files to (0666 & ~umask). PR: bin/16119 Submitted by: Sascha Blank Revision Changes Path 1.17 +7 -1 src/usr.sbin/ctm/ctm_rmail/ctm_rmail.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message