diff options
author | Jim Meyering <jim@meyering.net> | 2003-09-08 06:08:13 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-09-08 06:08:13 +0000 |
commit | f0a5c8d223908bbfeea07d1269dcaef55fb3b614 (patch) | |
tree | 3ef46f0c70d09a371eec980325431dc6e3d6b1c2 /src | |
parent | d637d9d5b26e745acf064113b08243caf273ca8a (diff) | |
download | coreutils-f0a5c8d223908bbfeea07d1269dcaef55fb3b614.tar.xz |
Add a comment.
Diffstat (limited to 'src')
-rw-r--r-- | src/remove.c | 4 |
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 |