On 2009-07-17, Paul de Weerd <we...@weirdnet.nl> wrote: > > 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"); rm_tree(argv); - else + } else rm_file(argv); } it doesn't really help though; same as with printing a warning while loading firewall rules, it's too late. I could see some value in a "pflint" tool, but really you should aim for rulesets simple enough to understand by reading through them..