From seggers@semyam.dinoco.de  Sat Sep 12 12:42:08 1998
Received: from tim.xenologics.com (tim.xenologics.com [194.77.5.24])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA05136
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 12 Sep 1998 12:42:02 -0700 (PDT)
          (envelope-from seggers@semyam.dinoco.de)
Received: (from uucp@localhost)
	by tim.xenologics.com (8.8.5/8.8.8) with UUCP id VAA24393
	for FreeBSD-gnats-submit@freebsd.org; Sat, 12 Sep 1998 21:39:48 +0200 (MET DST)
Received: (from seggers@localhost)
	by semyam.dinoco.de (8.9.1/8.8.8) id VAA04148;
	Sat, 12 Sep 1998 21:38:11 +0200 (CEST)
	(envelope-from seggers)
Message-Id: <199809121938.VAA04148@semyam.dinoco.de>
Date: Sat, 12 Sep 1998 21:38:11 +0200 (CEST)
From: Stefan Eggers <seggers@semyam.dinoco.de>
Reply-To: seggers@semyam.dinoco.de
To: FreeBSD-gnats-submit@freebsd.org
Cc: seggers@semyam.dinoco.de
Subject: wrong perms on objformat after upgrade
X-Send-Pr-Version: 3.2

>Number:         7908
>Category:       conf
>Synopsis:       wrong perms on objformat after upgrade
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 12 12:50:01 PDT 1998
>Closed-Date:    Thu Jul 19 12:57:40 PDT 2001
>Last-Modified:  Thu Jul 19 13:05:48 PDT 2001
>Originator:     Stefan Eggers
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
none
>Environment:

	-current cvsup'ed on September 8th, 1998

>Description:

	I did the transition from a.out to ELF with the abovementioned
sources splitted in building and installing.  It all went fine as far
as the system is concerned (I myself made an operator error :->) except
the permissions on /etc/objformat.  I installed it as root with an
umask of 077 and the file got the permissions 0600.

	Now the problem was that I wanted to do a "make extract" for
the crafty sources (see games in the ports collection) and this
failed due to the permission on this file.

>How-To-Repeat:

	Make an a.out to ELF transition with umask 077 splitted in a
build and an install phase.  Doing it in one step might show this
problem, too but I didn't test for that as it already took very long.

	Now try a "make extract" in the ports collection.  I did it to
crafty (under games) but any other port will probably do, too.

	*BINGO*, you hit the problem.

>Fix:
	
	Add an explicit chmod command (permissions 0644) for the
objformat file in Makefile.upgrade immediately after its creation.
>Release-Note:
>Audit-Trail:

From: dag-erli@ifi.uio.no (Dag-Erling =?iso-8859-1?Q?Co=EFdan?=  =?iso-8859-1?Q?Sm=F8rgrav?= )
To: seggers@semyam.dinoco.de
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/7908: wrong perms on objformat after upgrade
Date: 13 Sep 1998 02:50:12 +0200

 Stefan Eggers <seggers@semyam.dinoco.de> writes:
 > 	I did the transition from a.out to ELF with the abovementioned
 > sources splitted in building and installing.  It all went fine as far
 > as the system is concerned (I myself made an operator error :->) except
 > the permissions on /etc/objformat.  I installed it as root with an
 > umask of 077 and the file got the permissions 0600.
 
 Don't Do That, Then. I learned the hard way never to set root's umask
 to anything stricter than 022. Unless you always remember to set the
 umask right at the right time, anything you install (including, but
 not limited to, /etc/objformat) is installed wrong.
 
 DES
 -- 
 Dag-Erling Smrgrav - dag-erli@ifi.uio.no

From: Bruce Evans <bde@zeta.org.au>
To: dag-erli@ifi.uio.no, freebsd-bugs@FreeBSD.ORG
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/7908: wrong perms on objformat after upgrade
Date: Sun, 13 Sep 1998 14:33:17 +1000

 > > the permissions on /etc/objformat.  I installed it as root with an
 > > umask of 077 and the file got the permissions 0600.
 > 
 > Don't Do That, Then. I learned the hard way never to set root's umask
 > to anything stricter than 022. Unless you always remember to set the
 > umask right at the right time, anything you install (including, but
 > not limited to, /etc/objformat) is installed wrong.
 
 Nonsense.  Everything installed properly (using install(1)) is installed
 right.
 
 Bruce

From: dag-erli@ifi.uio.no (Dag-Erling =?iso-8859-1?Q?Co=EFdan?=  =?iso-8859-1?Q?Sm=F8rgrav?= )
To: Bruce Evans <bde@zeta.org.au>
Cc: freebsd-bugs@FreeBSD.ORG, FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/7908: wrong perms on objformat after upgrade
Date: 13 Sep 1998 11:59:21 +0200

 Bruce Evans <bde@zeta.org.au> writes:
 > > > the permissions on /etc/objformat.  I installed it as root with an
 > > > umask of 077 and the file got the permissions 0600.
 > > Don't Do That, Then. I learned the hard way never to set root's umask
 > > to anything stricter than 022. Unless you always remember to set the
 > > umask right at the right time, anything you install (including, but
 > > not limited to, /etc/objformat) is installed wrong.
 > Nonsense.  Everything installed properly (using install(1)) is installed
 > right.
 
 XFree86 comes to mind.
 
 DES
 -- 
 Dag-Erling Smrgrav - dag-erli@ifi.uio.no
State-Changed-From-To: open->closed 
State-Changed-By: mike 
State-Changed-When: Thu Jul 19 12:57:40 PDT 2001 
State-Changed-Why:  

Resolving this PR now wouldn't be an effective use of resources, 
as it's not likely many users are still upgrading their aout 
systems to ELF. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=7908 
>Unformatted:
