Bruno Haible wrote:

Gisle Vanem wrote:
since the commit "diff: use openat, fstatat when recursive":
    
https://git.savannah.gnu.org/cgit/diffutils.git/commit/?id=6bf2c33ea45c20061c13eeefebf2951eab79b61c

any '--recursive' option has stopped working on
Windows. AFAICS, since the 'openat()' seems unsupported
on Windows (accessing '/proc/self/x' and other stuff).

Does it work if you add the modules 'fstatat' and 'openat' to bootstrap.conf?
These modules are supported on native Windows [1][2].

Off-course, otherwise diff.exe wouldn't have linked.
Would it?

I find that fstatat() + openat() on Windows works bad;
from 'man fstatat'
  If pathname is absolute, then dirfd is ignored.

So in my test:
  diff --recursive <rel-dir-1> <rel-dir-2>

does not work. But a:
  diff --recursive <abs-dir-1> <abs-dir-2>

does work! What could be the cause of this?

Bruno, any GNUlib test for this case?

--
--gv



Reply via email to