Problem with patch and infinit directories

Brandon Allbery the tame hacker on the North Coast bsa at ncoast.UUCP
Fri Jan 25 01:03:01 AEST 1985


> Article <2547 at umcp-cs.UUCP>, from chris at umcp-cs.UUCP (Chris Torek)
+----------------
| > The restriction about linking directories is built into
| > the link program.
| 
| Not in 4.2BSD it's not!  I think it was in the 4.1 kernel as well.
| (I haven't seen any other kernel sources, so I wouldn't know about
| V6/V7/Sn.)

V7 allows it; it's how /bin/mkdir works.  In fact, I just had to write
a custom mkdir because /bin/mkdir was using the wrong uid to compute
access permissions.  I can see why 4.2's mkdir system call would be useful.

Also:  Plexus P/35 (System III) has /etc/link which links directories
and is billed to be /bin/ln without error checking (for root only).

--bsa
-- 
   Brandon Allbery @ decvax!cwruecmp!ncoast!bsa (..ncoast!tdi1!bsa business)
6504 Chestnut Road, Independence, Ohio 44131  +1 216 524 1416 (or what have you)
     Who said you had to be (a) a poor programmer or (b) a security hazard
			       to be a hacker?



More information about the Comp.unix mailing list