June 9, 2026
8:23 a.m.
eric pouech (@epo) commented about programs/cmd/builtins.c:
if (!argN) break;
- WINE_TRACE("type: Processing arg '%s'\n", wine_dbgstr_w(thisArg)); - hIn = CreateFileW(thisArg, GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, NULL, OPEN_EXISTING, - FILE_ATTRIBUTE_NORMAL, NULL); - if (hIn == INVALID_HANDLE_VALUE) { + havewildcards = wcspbrk(thisArg, L"*?") ? TRUE : FALSE; + + fileNamePart = PathFindFileNameW(thisArg); + + hff = FindFirstFileW(thisArg, &fd);
this will break access to DOS devices (check out 'type NUL') -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11094#note_142496