Don't include dirname.h, since system.h does it now.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 3 Sep 2006 02:53:58 +0000 (02:53 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 3 Sep 2006 02:53:58 +0000 (02:53 +0000)
(usage, main): --preserve-root is now the default.

src/rm.c

index 4ba63c0e64335baf3b936d01a35a98913b385099..28e09ce1253a500d987ac273d36ef9f4c25f4d3f 100644 (file)
--- a/src/rm.c
+++ b/src/rm.c
@@ -50,7 +50,6 @@
 
 #include "system.h"
 #include "argmatch.h"
-#include "dirname.h"
 #include "error.h"
 #include "lstat.h"
 #include "quote.h"
@@ -171,8 +170,8 @@ Remove (unlink) the FILE(s).\n\
                           always (-i).  Without WHEN, prompt always\n\
 "), stdout);
       fputs (_("\
-      --no-preserve-root  do not treat `/' specially (the default)\n\
-      --preserve-root   fail to operate recursively on `/'\n\
+      --no-preserve-root  do not treat `/' specially\n\
+      --preserve-root   do not remove `/' (default)\n\
   -r, -R, --recursive   remove directories and their contents recursively\n\
   -v, --verbose         explain what is being done\n\
 "), stdout);
@@ -221,7 +220,7 @@ rm_option_init (struct rm_options *x)
 int
 main (int argc, char **argv)
 {
-  bool preserve_root = false;
+  bool preserve_root = true;
   struct rm_options x;
   bool prompt_once = false;
   int c;