summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-09-19 13:34:47 +0000
committerJim Meyering <jim@meyering.net>2005-09-19 13:34:47 +0000
commita9d57e3f26800268e020c0a6531034bc7cb0f545 (patch)
tree04739010e36bec2aff0bbf931830c0f1fea047ce /src
parentbcf48ff8a196b175831fee7b4305d948e9d8f23f (diff)
downloadcoreutils-a9d57e3f26800268e020c0a6531034bc7cb0f545.tar.xz
(remove_dir): Return RM_ERROR, not `1',
when attempting to remove `/' with --preserve-root.
Diffstat (limited to 'src')
-rw-r--r--src/remove.c2
1 files changed, 1 insertions, 1 deletions
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);