]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(remove_dir): Return RM_ERROR, not `1',
authorJim Meyering <jim@meyering.net>
Mon, 19 Sep 2005 13:34:47 +0000 (13:34 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 19 Sep 2005 13:34:47 +0000 (13:34 +0000)
when attempting to remove `/' with --preserve-root.

src/remove.c

index 58042286ad2f12ee9e482a82e5c1db93519e1cbd..65fdbee75d4cf64978b0f996e162b574615afc9e 100644 (file)
@@ -1084,7 +1084,7 @@ remove_dir (Dirstack_state *ds, char const *dir, struct cwd_state **cwd_state,
   if (ROOT_DEV_INO_CHECK (x->root_dev_ino, &dir_sb))
     {
       ROOT_DEV_INO_WARN (full_filename (dir));
-      return 1;
+      return RM_ERROR;
     }
 
   AD_push (ds, dir, &dir_sb);