From a9d57e3f26800268e020c0a6531034bc7cb0f545 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 19 Sep 2005 13:34:47 +0000 Subject: [PATCH] (remove_dir): Return RM_ERROR, not `1', when attempting to remove `/' with --preserve-root. --- src/remove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remove.c b/src/remove.c index 58042286a..65fdbee75 100644 --- a/src/remove.c +++ b/src/remove.c @@ -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); -- 2.11.4.GIT