From: Jim Meyering Date: Mon, 8 Sep 2003 06:08:13 +0000 (+0000) Subject: Add a comment. X-Git-Tag: v5.0.91~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0a5c8d223908bbfeea07d1269dcaef55fb3b614;p=thirdparty%2Fcoreutils.git Add a comment. --- 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