Path: utzoo!attcan!uunet!cs.utexas.edu!natinst!rpp386!jfh From: jfh@rpp386.Dallas.TX.US (John F. Haugh II) Newsgroups: comp.unix.wizards Subject: Re: Two identical filenames in one directory! Message-ID: <17076@rpp386.Dallas.TX.US> Date: 30 Sep 89 14:43:49 GMT References: <22@minya.UUCP> <2516@auspex.auspex.com> <8909300118.AA09366@beaches.hub.toronto.edu> Reply-To: jfh@rpp386.cactus.org (John F. Haugh II) Organization: TrishTrash Readers, Inc. Lines: 16 In article <8909300118.AA09366@beaches.hub.toronto.edu> thomson@hub.toronto.edu (Brian Thomson) writes: >Hmm. In my ongoing effort to further the cause of picking nits, >I offer the following: > >1) In both V6 and V7, root is able to write a newly creat()'ed directory. > This is how mkdir used to make the . and .. entries. mkdir creates those entries with mknod, not write. In fact, mkdir doesn't create() directories, it mknod()s all of the entries. Only the low 9 bits of the file mode are honored by create, to get the other 7 bits you have to use mknod(). -- John F. Haugh II +-Things you didn't want to know:------ VoiceNet: (512) 832-8832 Data: -8835 | The real meaning of MACH is ... InterNet: jfh@rpp386.cactus.org | ... Messages Are Crufty Hacks. UUCPNet: {texbell|bigtex}!rpp386!jfh +--------------------------------------