add: if (state->chdir_counter == 0) return true;
context: cycle_check (struct cycle_check_state *state, struct stat const *sb){  assert (state->magic == CC_MAGIC);  /* If the current directory ever happens to be the same     as the one we last recorded for the cycle detection,     then it's obviously part of a cycle.  */  if (state->chdir_counter && SAME_INODE (*sb, state->dev_ino))    return true;  /* If the number of `descending' chdir calls is a power of two,     record the dev/ino of the current directory.  */  if (is_power_of_two (++(state->chdir_counter)))    {      state->dev_ino.st_dev = sb->st_dev;      state->dev_ino.st_ino = sb->st_ino;    }  return false;}