Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!psuvax1!gatech!mcdchg!ddsw1!karl
From: karl@ddsw1.MCS.COM (Karl Denninger)
Newsgroups: comp.unix.wizards
Subject: Re: Two identical filenames in one directory!
Summary: Solution to problem
Message-ID: <1989Sep29.023527.5670@ddsw1.MCS.COM>
Date: 29 Sep 89 02:35:27 GMT
References: <22@minya.UUCP>
Reply-To: karl@ddsw1.MCS.COM (Karl Denninger)
Organization: Macro Computer Solutions, Inc., Mundelein, IL
Lines: 31

In article <22@minya.UUCP> jc@minya.UUCP (John Chambers) writes:
>
>|	 1777 -rw-rw-rw-   1 news     news       14751 Sep 27 16:40 active
>|	 1898 -rw-rw-rw-   1 news     news       14751 Sep 27 16:40 active
>
>|	   _qactive________
>|	   0F66767600000001
>|	   611349650000000F
>and:
>|	   _jactive________
>|	   0666767600000000
>|	   7A13496500000000

>On earlier versions of Unix, I'd know instantly what to do.  It's easy enough
>to write a program that runs thru a directory and extends each null byte to 
>the end of the entry.  But on Sys/V, this doesn't work, because nobody, not
>even root, can write a directory.  
>
>I'll just ask:  Does anyone know a solution to this problem, short 
>of zeroing the directory, running fsck, and reinstalling from backup?  The 
>best way would be to say "Yes, root can write a directory; here's how..."

Try using "clri" on the offending inode, then "fsck" the filesystem.....

See, that was easy.

--
Karl Denninger (karl@ddsw1.MCS.COM, !ddsw1!karl)
Public Access Data Line: [+1 312 566-8911], Voice: [+1 312 566-8910]
Macro Computer Solutions, Inc.		"Quality Solutions at a Fair Price"