Linking directories on Xenix???

Mark Seiffert marks at mgse.UUCP
Mon Aug 28 16:59:31 AEST 1989


In article <9807 at alice.UUCP> debra at alice.UUCP () writes:
>In article <1797 at crdgw1.crd.ge.com> davidsen at 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 at research.att.com   | uunet!research!debra     |
>------------------------------------------------------

-- 
Mark Seiffert,  Metairie, LA.
uucp:           rex!mgse!marks
bitnet:         marks%mgse at REX.CS.TULANE.EDU
internet:       marks%mgse at rex.cs.tulane.edu



More information about the Comp.unix.xenix mailing list