Re: [1.7] Bug in link() with long filenames

2009-07-15 Thread Charles Wilson
Corinna Vinschen wrote: > I changed the internal fhandler_base::fstat_by_handle method not to > use the FileAllInformation info class at all, since we don't need the > filename anyway in stat. > > Thanks for the report, Thanks for the fix. Confirmed that it fixes the test case on my system. -- C

Re: [1.7] Bug in link() with long filenames

2009-07-12 Thread Corinna Vinschen
On Jul 10 15:22, Charles Wilson wrote: > It seems that the st_nlink count is not updated for very long file > names. [...] > Any idea why "247" is a magic number? It's a magic number because you installed Cygwin 1.7 into some path like C:\cygwin-1.7. In my case the magic number is 251 because I i

[1.7] Bug in link() with long filenames

2009-07-10 Thread Charles Wilson
It seems that the st_nlink count is not updated for very long file names. If the filename length is 247, everything is fine. If it is 248...the link count does not get updated, although the files (original and the link) both have the same st_ino value. Here's a test case (takes an optional argumen