summaryrefslogtreecommitdiff
path: root/src/remove.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-08 06:08:13 +0000
committerJim Meyering <jim@meyering.net>2003-09-08 06:08:13 +0000
commitf0a5c8d223908bbfeea07d1269dcaef55fb3b614 (patch)
tree3ef46f0c70d09a371eec980325431dc6e3d6b1c2 /src/remove.c
parentd637d9d5b26e745acf064113b08243caf273ca8a (diff)
downloadcoreutils-f0a5c8d223908bbfeea07d1269dcaef55fb3b614.tar.xz
Add a comment.
Diffstat (limited to 'src/remove.c')
-rw-r--r--src/remove.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/remove.c b/src/remove.c
index 387a27bd3..0e0a970f2 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -889,6 +889,10 @@ remove_cwd_entries (Dirstack_state *ds, char **subdir, struct stat *subdir_sb,
error (EXIT_FAILURE, errno, _("cannot lstat %s"),
quote (full_filename (f)));
+ /* FIXME: here (if F is a command line argument) is at least one
+ place in which we'll have to compare the dev/ino against those
+ of `/', in implementing fail-to-remove-root-dir semantics. */
+
if (chdir (f))
{
/* It is much more common that we reach this point for an