From owner-freebsd-stable@FreeBSD.ORG Tue May 29 16:27:02 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C082E1065670 for ; Tue, 29 May 2012 16:27:02 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (m209-73.dsl.rawbw.com [198.144.209.73]) by mx1.freebsd.org (Postfix) with ESMTP id 913B88FC12 for ; Tue, 29 May 2012 16:27:02 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.5/8.14.5) with ESMTP id q4TGR276023805; Tue, 29 May 2012 09:27:02 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.5/8.14.5/Submit) id q4TGR1P8023802; Tue, 29 May 2012 09:27:01 -0700 (PDT) (envelope-from david) Date: Tue, 29 May 2012 09:27:01 -0700 From: David Wolfskill To: James Message-ID: <20120529162701.GZ1509@albert.catwhisker.org> Mail-Followup-To: David Wolfskill , James , FreeBSD Stable References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NJ3GtppTlf/130kA" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: FreeBSD Stable Subject: Re: Possible Clang regression - object files are always mode 0600 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2012 16:27:02 -0000 --NJ3GtppTlf/130kA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 29, 2012 at 01:39:19AM -0500, James wrote: > Hi all. I've come across a possible Clang regression that recently > crept into stable/9. I'd like to check to see whether it's a true bug > or if I jacked something up. It appears all object files are created > with mode 0600 rather than honoring umask. This breaks installworld > for me. I use a centralized src/obj over NFS configuration and > installing to the target system fails with a permission denied error. Hmmm... yeah, that could cause a bit of hassle for me, as well. Checking a FreeBSD/i386 stable/9 /usr/obj as of r236226, I see 16544 files with permission 0600 and 710 files that have something else (typically, 0644): d134(9.0-S)[6] find . -type f -name \*.o \! -perm 0600 -ls | wc -l 710 d134(9.0-S)[7] find . -type f -name \*.o -perm 0600 -ls | wc -l 16544 d134(9.0-S)[8] find . -type f -name \*.o \! -perm 0600 -ls | head 2075139 12 -rwxr-xr-x 1 root wheel 6016= May 25 05:10 ./tmp/usr/lib/dtrace/drti.o 2072994 4 -rwxr-xr-x 1 root wheel 829= May 24 12:00 ./tmp/usr/lib/crti.o 2072995 4 -rwxr-xr-x 1 root wheel 785= May 24 12:00 ./tmp/usr/lib/crtn.o 2072996 4 -rwxr-xr-x 1 root wheel 2014= May 24 12:00 ./tmp/usr/lib/gcrt1.o 2072997 4 -rwxr-xr-x 1 root wheel 1848= May 24 12:00 ./tmp/usr/lib/crt1.o 2072998 4 -rwxr-xr-x 1 root wheel 2004= May 24 12:00 ./tmp/usr/lib/Scrt1.o 2072999 4 -rwxr-xr-x 1 root wheel 1628= May 24 12:00 ./tmp/usr/lib/crtbegin.o 2073000 4 -rwxr-xr-x 1 root wheel 1252= May 24 12:00 ./tmp/usr/lib/crtend.o 2072980 4 -rwxr-xr-x 1 root wheel 1968= May 24 12:00 ./tmp/usr/lib/crtbeginT.o 2072981 4 -rwxr-xr-x 1 root wheel 1864= May 24 12:00 ./tmp/usr/lib/crtbeginS.o d134(9.0-S)[9] find . -type f -name \*.o -perm 0600 -ls | head 2472960 20 -rw------- 1 root wheel 9984= May 29 04:27 ./make.i386/usr/src/usr.bin/make/cond.o 2472961 8 -rw------- 1 root wheel 2456= May 29 04:27 ./make.i386/usr/src/usr.bin/make/buf.o 2472962 20 -rw------- 1 root wheel 9296= May 29 04:27 ./make.i386/usr/src/usr.bin/make/dir.o 2472963 24 -rw------- 1 root wheel 11924= May 29 04:27 ./make.i386/usr/src/usr.bin/make/arch.o 2472964 8 -rw------- 1 root wheel 2352= May 29 04:27 ./make.i386/usr/src/usr.bin/make/hash.o 2472966 12 -rw------- 1 root wheel 4188= May 29 04:27 ./make.i386/usr/src/usr.bin/make/for.o 2472965 4 -rw------- 1 root wheel 1588= May 29 04:27 ./make.i386/usr/src/usr.bin/make/hash_tables.o 2472967 60 -rw------- 1 root wheel 29844= May 29 04:27 ./make.i386/usr/src/usr.bin/make/job.o 2472968 40 -rw------- 1 root wheel 19964= May 29 04:27 ./make.i386/usr/src/usr.bin/make/main.o 2472970 12 -rw------- 1 root wheel 6096= May 29 04:27 ./make.i386/usr/src/usr.bin/make/make.o d134(9.0-S)[10]=20 So I won't claim "always mode 0600," but it looks like enough to be annoying. :-} I'm pretty sure I didn't change anything relevent from how I build with gcc (on a different slice). Peace, david --=20 David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --NJ3GtppTlf/130kA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk/E+NQACgkQmprOCmdXAD1JtgCbBsvERoBhadaE3P1A6Da3Imwa u/gAn3AuPIs9utMXh17Z+wb+co0rugpa =P3Mg -----END PGP SIGNATURE----- --NJ3GtppTlf/130kA--