On 2024-03-01 09:29, Gisle Vanem wrote:
Some added trace shows:
diff.c(844): &noparent: 0x00007FF6A9438478
diff.c(1548): file[0].name: 'h:\Cygwin64', st_mode: S_ISDIR, size:
-1, toplevel: 1
diff.c(1548): file[1].name: 'f:\Cygwin64', st_mode: S_ISDIR, size:
-1, toplevel: 1
My guess is that 'diff' infers that the two strings name the same
directory,
because st_dev and st_ino are identical
which means same_file (which uses SAME_INODE) thinks they're the same
file.
In 'stat_size()' you mean?
Although diffutils uses stat_size, I don't think that's the specific
problem here. I think it's more in diffutils's same_file function, which
uses SAME_INODE and a bunch of other stuff.