Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site uwmacc.UUCP Path: utzoo!linus!decvax!genrad!panda!talcott!harvard!seismo!uwvax!uwmacc!jwp From: jwp@uwmacc.UUCP (jeffrey w percival) Newsgroups: net.unix Subject: Funny filenames: so far, no good... (2.9BSD) Message-ID: <1163@uwmacc.UUCP> Date: Tue, 28-May-85 22:09:32 EDT Article-I.D.: uwmacc.1163 Posted: Tue May 28 22:09:32 1985 Date-Received: Fri, 31-May-85 03:27:53 EDT Distribution: net Organization: UWisconsin-Madison Academic Comp Center Lines: 23 I've had a number of responses on how to remove the file whose name is \t 360 200 035 002 \0 but no one has won yet. Most people recommended using unlink(2) like this: main() { unlink("\t\360\200\035\002"); } but this fails. One person even sent me a program that opened the directory, searched for the entry representing the bad file, and passed that string, unmolested in any way, to unlink: fd = open(".", O_RDONLY); ... seek to proper entry ... read(fd, &direct, sizeof(direct)); status = unlink(direct.d_name); That failed too. Holy filename, Batman! What next? -- Jeff Percival ...!uwvax!uwmacc!jwp