Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!think!mintaka!bloom-beacon!eru!luth!sunic!mcsun!ukc!dcl-cs!aber-cs!rupert!pcg From: pcg@rupert.cs.aber.ac.uk (Piercarlo Grandi) Newsgroups: comp.unix.xenix Subject: Re: ENORMOUS pathname Message-ID: Date: 5 Feb 90 19:45:46 GMT References: <350@spcc386.UUCP> Sender: pcg@aber-cs.UUCP Organization: Coleg Prifysgol Cymru Lines: 21 In-reply-to: stefan@spcc386.UUCP's message of 2 Feb 90 13:09:58 GMT In article <350@spcc386.UUCP> stefan@spcc386.UUCP (Stefan Posthuma) writes: A directory-handling program went berzerk and now I have this path with about two hundred directories in there. I have tried but there seems to be no way to get rid of it. The shell breaks when I go deep enough, rm -r goofs up, fsck fails, rmdir crashes and so on. I am running SCO Xenix 386 2.3.1 Bright ideas anyone? Fairly easy... move everything else our of that directory, or move the first part of the crazy pathname into its own directory, and then use fsdb and ZAP THE INODE (keep zapping inodes...). Ignore fsck's attempts to rescue the directory then. Or use ftw(3) with a routine that does an unlink(2) from the bottom up. -- Piercarlo "Peter" Grandi | ARPA: pcg%cs.aber.ac.uk@nsfnet-relay.ac.uk Dept of CS, UCW Aberystwyth | UUCP: ...!mcvax!ukc!aber-cs!pcg Penglais, Aberystwyth SY23 3BZ, UK | INET: pcg@cs.aber.ac.uk