> > You wouldn't complain if you put a 'rm -f /' at the end of > > /etc/rc.local, now would you ? You won't get a warning for it either. > > that can be fixed. > > Index: rm.c > =================================================================== > RCS file: /cvs/src/bin/rm/rm.c,v > retrieving revision 1.22 > diff -u -p -r1.22 rm.c > --- rm.c 10 Jun 2008 17:14:16 -0000 1.22 > +++ rm.c 17 Jul 2009 16:18:05 -0000 > @@ -122,9 +122,12 @@ main(int argc, char *argv[]) > if (*argv) { > stdin_ok = isatty(STDIN_FILENO); > > - if (rflag) > + if (rflag) { > + if (strcmp(*argv,"/") == 0) > + printf("oh hai, i r in ur hard driv " > + "nomming ur files\n");
I think you should append ``. Srsly'' if -f is given. Miod