Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!gatech!ncar!tank!nic.MR.NET!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon S. Allbery) Newsgroups: comp.os.minix Subject: Re: rmdir has become blind Message-ID: <13220@ncoast.UUCP> Date: 7 Dec 88 23:19:55 GMT References: <579@mks.UUCP> <474@hvrunix.UUCP> <586@mks.UUCP> Reply-To: allbery@ncoast.UUCP (Brandon S. Allbery) Followup-To: comp.os.minix Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 32 As quoted from <586@mks.UUCP> by wheels@mks.UUCP (Gerry Wheeler): +--------------- | Oh, one way I have found to violently dislodge a directory is to run cc | and tell it to use as output a name which is an unwanted directory. It | eventually gives an error message that the file already exists, but in | the process it deletes it. I then run fsck to fix the file system. In | this case, it does what I want. I'm not sure this behaviour is normally | desireable, however. Be careful when you call cc. +--------------- Don't blame ast for this -- a reasonably pure System V's pcc does this as well. I managed to orphan a directory tree my mis-specifying the arguments in a Makefile while attempting to build a new kernel: $ sh :mkuts86 (deleted) cc (...) -o .. ld: cannot create .. *** Exit 13. Stop. $ ls .. .. not found $ _ Summary: cc is an idiot. ++Brandon -- Brandon S. Allbery, comp.sources.misc moderator and one admin of ncoast PA UN*X uunet!hal.cwru.edu!ncoast!allbery ncoast!allbery@hal.cwru.edu allberyb@skybridge.sdi.cwru.edu allbery@uunet.uu.net comp.sources.misc is moving off ncoast -- please do NOT send submissions direct Send comp.sources.misc submissions to comp-sources-misc@.