http://bugs.winehq.org/show_bug.cgi?id=21434
Summary: append file example works on Vista but not in wine. Product: Wine Version: 1.1.35 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: htl10@users.sourceforge.net
Created an attachment (id=25810) --> (http://bugs.winehq.org/attachment.cgi?id=25810) zip file with source code, input file, and a cross-compiled binary.
While trying to fix bug 21394 ("+" in cmd copy's syntax to join two files), I tried to an example of appending files in MSDN ( http://msdn.microsoft.com/en-us/library/aa363778%28VS.85%29.aspx ) and when I am testing my patch, it did not work, and so I tested the example itself, and it doesn't work either. Then I reboot to Vista and the example does work there, so obviously there is a bug with wine's File operations themselves.
The example, is supposed to just append the content of file "one.txt" to file "two.txt" every time it is run. When the binary is run on Vista, "two.txt" increases in size every time "append.exe" is run as it should; but this does not work under wine cmd.
The binary "append.exe" is created with cross-gcc in linux, simply by "i686-pc-mingw32-gcc file.c" ; feel free to rebuild from source, which is also attached in the zip file.
http://bugs.winehq.org/show_bug.cgi?id=21434
Hin-Tak Leung htl10@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |21394
http://bugs.winehq.org/show_bug.cgi?id=21434
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase
http://bugs.winehq.org/show_bug.cgi?id=21434
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |xerox_xerox2000@yahoo.co.uk Ever Confirmed|0 |1
--- Comment #1 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2010-10-31 17:40:15 CDT --- confirming
http://bugs.winehq.org/show_bug.cgi?id=21434
--- Comment #2 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2010-10-31 17:43:09 CDT --- Created an attachment (id=31634) --> (http://bugs.winehq.org/attachment.cgi?id=31634) test
i tried to change the test case to wine's test suite. Looks like WriteFile fails with a ERROR_ACCESS_DENIED.
On windows this test passes fine, and the appended file contains "hello world"
I'll see if i can improve the test more to add them to wine's test suite
http://bugs.winehq.org/show_bug.cgi?id=21434
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |frederic.delanoy@gmail.com
--- Comment #3 from Frédéric Delanoy frederic.delanoy@gmail.com 2012-10-26 15:58:26 CDT --- Still in 1.5.16
http://bugs.winehq.org/show_bug.cgi?id=21434
timur@linkbit.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |timur@linkbit.com
--- Comment #4 from timur@linkbit.com 2012-11-20 11:25:16 CST --- IMHO, the error is in server_get_unix_fd(), which out FILE_APPEND_DATA:
int server_get_unix_fd( HANDLE handle, unsigned int wanted_access, int *unix_fd, int *needs_close, enum server_fd_type *type, unsigned int *options ) { ... wanted_access &= FILE_READ_DATA | FILE_WRITE_DATA;
http://bugs.winehq.org/show_bug.cgi?id=21434
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |focht@gmx.net Resolution| |DUPLICATE
--- Comment #5 from Anastasius Focht focht@gmx.net 2013-03-17 12:13:16 CDT --- Hello folks,
marking this one a dupe of bug 33232 It contains a nicer analysis (append behaviour explanation) and a real application "Amazon MP3 Downloader" crashing because of this.
Regards
*** This bug has been marked as a duplicate of bug 33232 ***
http://bugs.winehq.org/show_bug.cgi?id=21434
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Ken Sharp kennybobs@o2.co.uk 2013-03-24 07:02:53 CDT --- Closing bugs marked as duplicate.