From d0c89246d001217064ee93c9f764e9d27e424db5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 12 Mar 2006 22:21:05 +0000 Subject: [PATCH] (AD_pop_and_chdir): Use new macro, CYCLE_CHECK_REFLECT_CHDIR_UP, rather than open-coding it. --- src/remove.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/remove.c b/src/remove.c index cf46fd2c9..bfb8a39b9 100644 --- a/src/remove.c +++ b/src/remove.c @@ -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); -- 2.34.1