Hi Paul,

> That test is too strict, as it rejects the NetBSD 7 behavior.  I installed 
> the 
> attached, to try to fix this.

I confirm that it works fine:

  * On NetBSD 7.0, configure finds that
      checking whether rename manages hard links correctly... yes
    and so REPLACE_RENAME = 0 and REPLACE_RENAMEAT = 0.
    And the rename/renameat tests pass.

  * On Cygwin 1.5.25, configure find that
      checking whether rename manages hard links correctly... no
    (because the test program exited with code 8),
    and so REPLACE_RENAME = 1 and HAVE_RENAMEAT = 0.
    And the rename/renameat tests pass.

> ... that test. As its comment says, it 
> attempts to detect a bug with rename("a","b") setting st_nlink incorrectly 
> when 
> "a" and "b" are hard links to the same file. This bug is somewhat independent 
> of 
> the issue we're talking about.

But the test program does not call stat(), nor does it test st_nlink.
Still confused...

Bruno


Reply via email to