http://bugs.winehq.org/show_bug.cgi?id=27578
Summary: Cygwin's wget.exe can't download files Product: Wine Version: 1.3.22 Platform: x86 URL: http://cygwin.com/setup.exe OS/Version: Linux Status: NEW Keywords: download, patch, source Severity: minor Priority: P2 Component: ntdll AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
Install cygwin, add wget package. Then run: $ wine wget.exe http://www.cygwin.com/setup.exe Resolving www.cygwin.com (www.cygwin.com)... 209.132.180.131 Connecting to www.cygwin.com (www.cygwin.com)|209.132.180.131|:80... connected. HTTP request sent, awaiting response... 200 OK fixme:ntdll:NtQueryVolumeInformationFile 0x160: attribute info not supported fixme:ntdll:server_ioctl_file Unsupported ioctl 900a8 (device=9 access=0 func=2a method=0) Length: 562195 (549K) [application/octet-stream] setup.exe: Input/Output error
Cannot write to `setup.exe' (Input/Output error).
Faking success for attribute info allows it to succeed:
diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c index 4d49956..697793e 100644 --- a/dlls/ntdll/file.c +++ b/dlls/ntdll/file.c @@ -2539,7 +2539,8 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, PIO_STATUS_BLOCK io } break; case FileFsAttributeInformation: - FIXME( "%p: attribute info not supported\n", handle ); + FIXME( "%p: attribute info not supported, faking success\n", handle ); + io->u.Status = STATUS_SUCCESS; break; case FileFsControlInformation: FIXME( "%p: control info not supported\n", handle );