http://bugs.winehq.org/show_bug.cgi?id=35495
Bug ID: 35495 Summary: sharing violation and prompt for copy /B file1+file2 file1 Product: Wine Version: 1.7.10 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: htl10@users.sourceforge.net Classification: Unclassified
copy /B file1+file2 file1
(to do append in a rather old nmake MSVC build script)
results in sharing violation and prompts, and error. Obviously, under genuine windows, there is no prompt to confirm, nor the sharing violation message.
The actual behavior is this:
-------------
copy /B file1+file2 file1
Overwrite file1? (Yes|No)yes Sharing violation.
Overwrite file1? (Yes|No)yes
copy file1+file2 file1
Overwrite file1? (Yes|No)yes err:cmd:WCMD_ManualCopy Unexpected failure writing to L"file1", rc=6 Invalid handle.
Overwrite file1? (Yes|No)yes -----------
The expected behavior should be silent for /B .
http://bugs.winehq.org/show_bug.cgi?id=35495
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk
http://bugs.winehq.org/show_bug.cgi?id=35495
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
https://bugs.winehq.org/show_bug.cgi?id=35495
Lauri Kenttä lauri.kentta@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lauri.kentta@gmail.com
--- Comment #1 from Lauri Kenttä lauri.kentta@gmail.com --- The /B switch has actually nothing to do with a prompt (or silence). It just signifies binary mode, which is fine in your case.
To avoid a prompt, you should use the /Y switch.
As for the main issue, I've sent a patch that should fix it: http://source.winehq.org/patches/data/128058
https://bugs.winehq.org/show_bug.cgi?id=35495
--- Comment #2 from Lauri Kenttä lauri.kentta@gmail.com --- Actually my patch fixes your prompt problem as well, since appending to a file does not cause a prompt.
So, this is fixed in 064508c0dd7bb331d581de77bebec62db2025e57.
https://bugs.winehq.org/show_bug.cgi?id=35495
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dimesio@earthlink.net, | |winetest@luukku.com
https://bugs.winehq.org/show_bug.cgi?id=35495
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wylda@volny.cz
https://bugs.winehq.org/show_bug.cgi?id=35495
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |064508c0dd7bb331d581de77beb | |ec62db2025e57 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #3 from Matteo Bruni matteo.mystral@gmail.com --- (In reply to Lauri Kenttä from comment #2)
Actually my patch fixes your prompt problem as well, since appending to a file does not cause a prompt.
So, this is fixed in 064508c0dd7bb331d581de77bebec62db2025e57.
I can confirm that.
https://bugs.winehq.org/show_bug.cgi?id=35495
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.0-rc2.
https://bugs.winehq.org/show_bug.cgi?id=35495
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.8.x
https://bugs.winehq.org/show_bug.cgi?id=35495
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
--- Comment #5 from Michael Stefaniuc mstefani@redhat.com --- Removing 1.8.x milestone from bugs included in 1.8.7.