*BSD News Article 20542


Return to BSD News archive

Newsgroups: comp.os.386bsd.bugs
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!spool.mu.edu!bloom-beacon.mit.edu!xlink.net!math.fu-berlin.de!zib-berlin.de!news.dfn.de!rrz.uni-koeln.de!news-rhrz!saph2.physik.uni-bonn.de!juengst
From: juengst@saph2.physik.uni-bonn.de (Henry G. Juengst)
Subject: Re: bug with ufs file creation
Sender: news@work1.rhrz.uni-bonn.de (News-Admin)
Message-ID: <GMT07Sep.93.34239@work1.rhrz.uni-bonn.de>
Date: Tue, 07 Sep 93 10:53:22 GMT
Lines: 29
Reply-To: juengst@saph2.physik.uni-bonn.de
References: <CCyLF6.n6@kithrup.com> <CCz5n2.9v7@pilhuhn.sub.org>
Organization: Physikalisches Institut der Universitaet Bonn


In article <CCz5n2.9v7@pilhuhn.sub.org>, hwr@pilhuhn.sub.org (Heiko W.Rupp) writes:
>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.
>
>If I remember right, this is a feature of all BSD-derived systems, so
>I wouldn't change this.

DG/UX 5.4.2 (a SVR4) creates new files with the GID of the process if
there's no SGID bit set for the directory. Otherwise the SGID for directories
would be useless. I think Sean Eric Fagan is right.

Henry

>
>-- 
>Heiko W.Rupp        Gerwigstr.5        D-76131  Karlsruhe    +49 721 9661521
>In an advertisement by a Hong Kong dentist:  Teeth extrcted by the
>        latest Methodists.
>
--
juengst@saph2.physik.uni-bonn.de   [131.220.221.12]  (internet)
juengst@boss1.physik.uni-bonn.de   [131.220.221.30]

Any opinions in this mail are my own.