From f0a5c8d223908bbfeea07d1269dcaef55fb3b614 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 8 Sep 2003 06:08:13 +0000 Subject: [PATCH] Add a comment. --- src/remove.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/remove.c b/src/remove.c index 387a27bd3f..0e0a970f2e 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 -- 2.47.2