*BSD News Article 20535


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!doc.ic.ac.uk!pipex!sunic!ugle.unit.no!flipper.pvv.unit.no!imf.unit.no!arnej
From: arnej@imf.unit.no (Arne Henrik Juul)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: bug with ufs file creation
Date: 7 Sep 93 12:45:07
Organization: Norwegian Institute of Technology
Lines: 15
Message-ID: <ARNEJ.93Sep7124507@khym.imf.unit.no>
References: <CCyLF6.n6@kithrup.com>
NNTP-Posting-Host: khym.imf.unit.no
In-reply-to: sef@kithrup.com's message of 7 Sep 93 00:59:14 GMT

In article <CCyLF6.n6@kithrup.com> sef@kithrup.com (Sean Eric Fagan) writes:
 > *I* consider this a bug.  It exists in every Net/2-derived system I could
 > play with, including BSD4.4.  When creating a file, the gid given to the
 > file is the gid of the directory it is in, and not the gid of the process
 > creating the file.  The following patch fixes that; it will only use the
 > gid of the directory if the directory's SGID bit is set.

As far as I know, this is mandated by the FIPS "profile" to Posix
1003.1, and is intentional in every BSD since 4.3 at least.  I don't
have my copy of posix around, but maybe some of the experts know
offhand.

  - Arne H. Juul