Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Sep 1998 21:38:11 +0200 (CEST)
From:      Stefan Eggers <seggers@semyam.dinoco.de>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Cc:        seggers@semyam.dinoco.de
Subject:   conf/7908: wrong perms on objformat after upgrade
Message-ID:  <199809121938.VAA04148@semyam.dinoco.de>

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

>Number:         7908
>Category:       conf
>Synopsis:       wrong perms on objformat after upgrade
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 12 12:50:01 PDT 1998
>Last-Modified:
>Originator:     Stefan Eggers
>Organization:
none
>Release:        FreeBSD 3.0-CURRENT i386
>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.
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



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