Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!freja.diku.dk!skinfaxe.diku.dk!thorinn From: thorinn@skinfaxe.diku.dk (Lars Henrik Mathiesen) Newsgroups: comp.unix.wizards Subject: Re: Removing garbage files Message-ID: <1990Jun4.193714.18953@diku.dk> Date: 4 Jun 90 19:37:14 GMT References: <156@TWG.UUCP> <610@atcmpe.atcmp.nl> <13043@smoke.BRL.MIL> Sender: news@diku.dk (The Netnews System) Organization: Department Of Computer Science, University Of Copenhagen Lines: 34 gwyn@smoke.BRL.MIL (Doug Gwyn) writes: >ronald@atcmp.nl (Ronald Pikkert) writes: >>bill@TWG.UUCP (Bill Irwin) writes: >>>[He has problems with garbage characters in file names on SCO XENIX] >>Your shell probably strips the high order bit which causes rm to be unable >>to delete these files. >But that doesn't explain why "rm -r" would fail to remove them. In 4.? BSD, the kernel will not accept path names with the high order bit set in some character. I have never seen a BSD filesystem spontaneously generate link names with high bits set, but a disk failure could cause this. However, I know of two similar cases where "rm -r" falied to work. The first was on a SYSV system, where a disk problem had caused some '/' characters to appear in a directory. clri/fsck to the rescue. Or was it adb on the raw disk? The other case happened to me a few weeks ago. We run a number of MORE/bsd systems (4.3-tahoe with NFS, more or less). We also run a number of Sun systems; one of them holds some users' home directories. I got a problem report with the same gist: "ls -l *" reported (i.a.) " not found". Somehow a file had been created with a name with only high-bit-set characters on the Sun server (which allowed it). Nothing could be one with it from the MORE/bsd machines. One of these days I'm going to remove the check for the high bit in remote filenames. -- Lars Mathiesen, DIKU, U of Copenhagen, Denmark [uunet!]mcsun!diku!thorinn Institute of Datalogy -- we're scientists, not engineers. thorinn@diku.dk