[Bug 35495] New: sharing violation and prompt for copy /B file1+file2 file1
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(a)winehq.org Reporter: htl10(a)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 . -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=35495 Jason Edmeades <us(a)edmeades.me.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |us(a)edmeades.me.uk -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=35495 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35495 Lauri Kenttä <lauri.kentta(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lauri.kentta(a)gmail.com --- Comment #1 from Lauri Kenttä <lauri.kentta(a)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 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35495 --- Comment #2 from Lauri Kenttä <lauri.kentta(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35495 winetest(a)luukku.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dimesio(a)earthlink.net, | |winetest(a)luukku.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35495 winetest(a)luukku.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wylda(a)volny.cz -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35495 Matteo Bruni <matteo.mystral(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |064508c0dd7bb331d581de77beb | |ec62db2025e57 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Matteo Bruni <matteo.mystral(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35495 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #4 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 2.0-rc2. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35495 Michael Stefaniuc <mstefani(a)redhat.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.8.x -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35495 Michael Stefaniuc <mstefani(a)redhat.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |--- --- Comment #5 from Michael Stefaniuc <mstefani(a)redhat.com> --- Removing 1.8.x milestone from bugs included in 1.8.7. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org