]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(AD_pop_and_chdir): Use new macro,
authorJim Meyering <jim@meyering.net>
Sun, 12 Mar 2006 22:21:05 +0000 (22:21 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 12 Mar 2006 22:21:05 +0000 (22:21 +0000)
CYCLE_CHECK_REFLECT_CHDIR_UP, rather than open-coding it.

src/remove.c

index cf46fd2c9e4c158b897933f3b30b6a12ac3a5aeb..bfb8a39b9beecb124feade15a56efcd0085ef6f4 100644 (file)
@@ -411,8 +411,8 @@ AD_pop_and_chdir (DIR **dirp, Dirstack_state *ds, char **prev_dir)
      could be reused in the creation (by some other process)
      of a directory that this rm process would encounter,
      which would result in a false-positive cycle indication.  */
-  if (SAME_INODE (ds->cycle_check_state.dev_ino, leaf_dev_ino))
-    ds->cycle_check_state.dev_ino = top->dev_ino;
+  CYCLE_CHECK_REFLECT_CHDIR_UP (&ds->cycle_check_state,
+                               top->dev_ino, leaf_dev_ino);
 
   /* Propagate any failure to parent.  */
   UPDATE_STATUS (top->status, old_status);