Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!husc6!cmcl2!brl-adm!adm!franco@MIKEY.BBN.COM From: franco@MIKEY.BBN.COM (Frank A. Lonigro) Newsgroups: comp.unix.wizards Subject: Re: Bad directory problem - Any answers? Message-ID: <8018@brl-adm.ARPA> Date: Thu, 25-Jun-87 11:28:54 EDT Article-I.D.: brl-adm.8018 Posted: Thu Jun 25 11:28:54 1987 Date-Received: Sat, 27-Jun-87 01:31:43 EDT Sender: news@brl-adm.ARPA Lines: 42 Mike: Just so I understand what your problem is I have the following examples: % pwd /usr % ls -lasg bin total 15 1 drwxr-xr-x 16 franco system 1024 Jun 25 09:30 .. 14 drwxr-xr-x 1 franco system 1024 Dec 2 1986 old % cd bin/old % pwd /usr/bin <---- I'm confused about this, you mentioned that old seems to be dot. If this is so, then have you tried this simple 'C' program? main() { /* change the name of old to be dot */ rename("/usr/bin/old", "/usr/bin/."); } If that doesn't work you can try re-linking dot back into bin like so: main() { /* reconnect dot */ link("/usr/bin", "/usr/bin/."); } Of course if the rename doesn't work then you are stuck with dot and old being the same. Maybe at this point you can clear the inode of old with the 'clri' command since dot and old should have different inodes. An fsck should take care of the rest. Good luck!!! If I happen to think of something else for you to try I will let you know..... franco%mikey.bbn.com@relay.cs.net UUCP: through Harvard.