On 2022年08月09日 22:52, Ken Brown wrote: > I think the best fix is to set res = 0 at the beginning of the loop and > to remove a "res = -1" that occurs later. I've sent a patch to > cygwin-patches. >> Ken > From https://cygwin.com/pipermail/cygwin-patches/2022q3/011994.html > Currently it is possible for symlink_info::check to return -1 in case > we're searching for foo and find foo.lnk that is not a shortcut. Does it matter that it is *not* a shortcut for this patch to work? I first experienced this issue using an actual shortcut, but simplified the reproduction code. mkshortcut -n Foo.lnk ... -> touch Foo.lnk -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x473CD05C78734E49.asc Type: application/pgp-keys Size: 2444 bytes Desc: OpenPGP public key URL: <https://cygwin.com/pipermail/cygwin/attachments/20220809/ca7ccd09/attachment-0001.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: <https://cygwin.com/pipermail/cygwin/attachments/20220809/ca7ccd09/attachment-0001.sig>