Path: utzoo!attcan!uunet!lll-winken!ctrsol!uakari.primate.wisc.edu!dogie.macc.wisc.edu!uwvax!shorty!thurm From: thurm@shorty.CS.WISC.EDU (Matthew Thurmaier) Newsgroups: comp.unix.xenix Subject: Re: Linking directories on Xenix??? Keywords: directory formats. Message-ID: <8233@spool.cs.wisc.edu> Date: 24 Aug 89 16:55:35 GMT References: <1114@ispi.UUCP> Sender: news@spool.cs.wisc.edu Reply-To: thurm@shorty.cs.wisc.edu (Matthew Thurmaier) Organization: The Computer Classroom - An SCO Authorized Training Center Lines: 38 In article <1114@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 ... Jonathan, 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: 1.) We know that a directory is really just a way of maping file names to i-nodes. 2.) We know that directories have i-node #s, just like any other file. 3.) We know that directories entries may only be made by root. 4.) We know that the structure of a directory entry is listed in SO, Write a program which you execute as root, which includes , opens the directory that you want to link to, gets it's i-node number and other vital information (note that if you open that directory, the "." entry represents the directory itself), then open the directory in which you want to make the new link entry and create an entry with the same information, only with the name changed to whatever you want, instead of ".". Let me know how it turns out. Matthew. make sure that Snail Mail: E Mail: Matthew J. Thurmaier ...!{allegra,harvard,seismo}!shorty!matt The Computer Classroom matt@shorty.wisc.edu 6701 Seybold Road, Ste. 122 Madison, WI 53719 (608) 271-2171 "why am I ALWAYS going somewhere?" >>-matt-->