June 19, 2026
1:25 p.m.
eric pouech (@epo) commented about programs/cmd/builtins.c:
+ WCMD_output_stderr(WCMD_LoadMessage(WCMD_READFAIL), thisArg); + continue; + } + + writeHeaders = TRUE; + + do { + WCHAR srcpath[MAX_PATH]; + + if(fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { + WINE_TRACE("Skipping directories\n"); + continue; + } + + foundOnlyDirectories = FALSE; + lstrcpyW(srcpath, thisArg); this has to be moved after the checks about buffer length (thisArg can be up to MAXSTRING)
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/11094#note_143625