Robert Elz <k...@munnari.oz.au> wrote: > Date: Thu, 26 Apr 2018 14:25:47 +0200 > From: Joerg Schilling <joerg.schill...@fokus.fraunhofer.de> > Message-ID: > <5ae1c54b.o3jqkvjsbowb+hep%joerg.schill...@fokus.fraunhofer.de> > > | This is a miss interpretation. > | The reason was just to avoid a mkdir() syscall. > > Jörg, that makes no sense at all. mkdir() was invented to deal > with the atomicity issues with dealing with '.' and '..'. If those did not > exist, mknod() would have been just fine for making directories (aside ... > Please stop inventing history.
Looks like you are inventing history. mkdir() has been introduced in order to overcome a security problem. mkdir before has been a suid-root program that first created an empty directory node, then chown()d it to you and then created hard links to . and .. This yould be used to let mkdir(1) chown /etc/passwd to you.... Jörg -- EMail:jo...@schily.net (home) Jörg Schilling D-13353 Berlin joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'