Linking directories on Xenix???

Chris Lewis clewis at eci386.uucp
Sat Aug 26 05:04:55 AEST 1989


In article <8233 at spool.cs.wisc.edu> thurm at shorty.cs.wisc.edu (Matthew Thurmaier) writes:
>In article <1114 at ispi.uucp> Jonathan Bayer writes:
>> I have a need to be able to link a directory to another directory.  I
>> know that it normally is not possible, but ...

>	This is somewhat of a KLUDGE, but see if you can get it to work.  I have
>not had time to try it myself, so there are NO PROMISSES, just hunches:

>3.) We know that directories entries may only be made by root.

Nope.  *Only* by the kernel.  There's no way of writing into a directory
file from a user program except by openning the special file for the
file system, traversing the hierarchy yourself, and manually zapping a 
block in the directory.  And, if you have to allocate a new block?  Well,
forget it.

The "link" system call will do what you want if you're root, unfortunately, 
fsck will probably bitch.
-- 
Chris Lewis, R.H. Lathwell & Associates: Elegant Communications Inc.
UUCP: {uunet!mnetor, utcsri!utzoo}!lsuc!eci386!clewis
Phone: (416)-595-5425



More information about the Comp.unix.xenix mailing list