http://bugs.winehq.com/show_bug.cgi?id=1460
Summary: CreateDirectory fails if the target directory already exists Product: Wine Version: 20030408 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-files AssignedTo: wine-bugs@winehq.com ReportedBy: jwilliams@itee.uq.edu.au
Running a DOS command line utility that creates a directory heirarchy and populatews it. In a WinXP DOS box, if a directory already exists, this fact is silently ignored and the program carries on. However, under Wine, the application reports an error:
ERROR:MDT - Failed to create directory C:\microblaze\linux_test\microblaze_1\libsrc.
Here is the relevant trace output
trace:file:CreateDirectoryW (L"C:\microblaze\linux_test\microblaze_1 \libsrc\",(nil)) warn:file:CreateDirectoryW Error 'File exists' trying to create directory '/home/jwilliam/win/c/microblaze/linux_test/microblaze_1/libsrc' trace:file:WriteFile 0x8 0x40722658 91 0x40722a60 (nil) ERROR:MDT - Failed to create directory C:\microblaze\linux_test\microblaze_1\libsrc.
It seems that Wine is reporting this as a "fatal" error, whereas Windows does not.
I reported this at comp.emulators.microsoft-windows.wine, and was advised to lodge a bug report. I searched the bugzilla DB and didn't find anything like this.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://bugs.winehq.com/show_bug.cgi?id=1460. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.