Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!rex!mgse!marks From: marks@mgse.UUCP (Mark Seiffert) Newsgroups: comp.unix.xenix Subject: Re: Linking directories on Xenix??? Summary: BUGS!! Message-ID: <991@mgse.UUCP> Date: 28 Aug 89 06:59:31 GMT References: <1114@ispi.UUCP> <1797@crdgw1.crd.ge.com> <9807@alice.UUCP> Reply-To: marks@.UUCP (Mark Seiffert) Organization: mgse Lines: 52 In article <9807@alice.UUCP> debra@alice.UUCP () writes: >In article <1797@crdgw1.crd.ge.com> davidsen@crdos1.UUCP (bill davidsen) writes: >> You can do this as root using the link(S) system call... > >But fsck will bark every time you run it, because it doesn't like >directories with more than one link. I have not ran fsck with a directory link yet. I have noticed that when you cd into a linked directory, and then cd .. out of it, you are in the parent directory of the linked file (is that the way to explain it?), it is aggravating. I have noticed the following problem, i would call it a bug, you decide for yourself. When the following script is ran it creates a directory in /usr/tmp and then links the directory to a second name. If you rm the second directory name, and then cd into the first, you can cd back out. It looks like rmdir does not check to see if a directory has links before it removes the . directory entry. I also noticed there is no online manual page for link. ln will not work with directories, as stated in the man page. link does not give a diagnostic message if it can not find the first directory named on the command line for the link command. ------------------ cut here ------------------ set -x cd /usr/tmp mkdir test1 link test1 test2 rmdir test2 cd test1 l cd /usr/tmp rmdir test1 ------------------ cut here ------------------ Any comments? Is this a known bug, i decided to drop SCO's softcare support. > >Paul. >-- >------------------------------------------------------ >|debra@research.att.com | uunet!research!debra | >------------------------------------------------------ -- Mark Seiffert, Metairie, LA. uucp: rex!mgse!marks bitnet: marks%mgse@REX.CS.TULANE.EDU internet: marks%mgse@rex.cs.tulane.edu