Path: utzoo!attcan!uunet!virtech!cpcahil
From: cpcahil@virtech.UUCP (Conor P. Cahill)
Newsgroups: comp.unix.wizards
Subject: Re: Two identical filenames in one directory!
Message-ID: <1213@virtech.UUCP>
Date: 30 Sep 89 12:00:34 GMT
References: <22@minya.UUCP> <11177@smoke.BRL.MIL> <188@bbxsda.UUCP>
Organization: Virtual Technologies Inc
Lines: 29

In article <188@bbxsda.UUCP>, scott@bbxsda.UUCP (Scott Amspoker) writes:
> I missed the original posting of the problem but I assume that you
> have to directory entries with the same name field.  (I won't ask
> how you managed to do that.)

No.  The problem was that the original poster had gotten a file with a
name that looked like the following:
	
	access\0\0\0\0\0\0\0\102

since the name contains non-null bytes after a null, there is no way 
to access the file through the system call interface.

> Assuming that the 'ln' and 'rm' commands will operate on the first
> occurance of the duplicate file name it should be easy enough to
> rename one of the files.  Am I missing something?  Are these files
> sharing the same inode?  Are they different files?

See above.

> Another approach is to copy the entire directory and do a 'clri' on
> the inode for the *old directory*.  Then let 'fsck' pick up the pieces.

This would probably work.
-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+