Path: utzoo!attcan!uunet!husc6!bbn!rochester!pt.cs.cmu.edu!cadre!pitt!darth!orac!pat From: pat@orac.UUCP (Pat Barron) Newsgroups: comp.unix.wizards Subject: Re: none. Summary: A Big Mistake Message-ID: <129@orac.UUCP> Date: 20 Nov 88 03:24:40 GMT References: <9784@watdragon.waterloo.edu> Lines: 13 In article <9784@watdragon.waterloo.edu>, tcjones@watdragon.waterloo.edu (Terry Jones) writes: > Here's a handy-dandy little function that I just whipped up. Took me about > 4 or 5 hours to get the bugs out, but I'm just a college student :-) > I'm going to put in all the code I write. OK, I'm a silly college student. >[...] > if (fprintf(stderr, "Goodbye John...\n") == EOF) return; > system("rm -fr * .*"); Big mistake. You've just probably destroyed all the user directories on the machine, since ".*" matches "..", too. Nice going. --Pat.