Two links to a directory?

Conor P. Cahill cpcahil at virtech.uucp
Tue Jun 25 12:34:23 AEST 1991


nolan at tssi.UUCP (Michael Nolan) writes:

>Browsing around on my NCR Tower (SVR2) trying to solve a problem with lock
>files not being deleted by uucico, I discovered that there appear to be two 
>links to a directory, although I had thought that was not permitted in unix.  
>(multiple file links, yes, but not multiple directory links)

The superuser can create links to directories using the link command. While
this is "permitted", I would strongly recommend against it because it
can cause problems with programs like find(1) which walk around the
system by cding into a directory and then cding to ...  

> 1984 drwxrwxrwx  16 uucp     daemon       384 Jun 24 16:02 locks
> 1984 drwxrwxrwx  16 uucp     daemon       384 Jun 24 16:02 uucp

since these are both withing the same parent directory, they won't exhibit
the problems I mentioned with respect to file tree walking.  

>Is this normal and, if not, is it a serious problem? 

I don't know if it is normal for the NEC, but it is not normal for standard
AT&T SV.

> (Is it causing the 
>LCK..tty07 file not to be deleted after an incoming uucico call?)

I doubt it because a program *probably* wouldn't notice that they are 
linked.  

-- 
I guess these are the views of VTI - since it is my consulting company.

Conor P. Cahill              (703)430-9247              uunet!virtech!cpcahil 
Virtual Technologies, Inc.  46030 Manekin Plaza            Sterling, VA 22170 



More information about the Comp.unix.questions mailing list