[Bug 26885] New: del /s crashes if it encounters a directory containing a space

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Apr 22 00:15:48 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=26885

           Summary: del /s crashes if it encounters a directory containing
                    a space
           Product: Wine
           Version: 1.3.18
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: cmd
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: dank at kegel.com


The following little batch file crashes cmd:

mkdir "foo bar"
cd "foo bar"
echo hi > hi.dat
cd ..
del /s hi.dat
cd "foo bar"
if exist hi.dat echo Del /s failed
if exist hi.dat del hi.dat
cd ..
rmdir "foo bar"

It's hard to fix because WCMD_delete() is complex, and when
it recurses, it smashes stuff into a new commandline without
quoting.  
(dir /s doesn't seem to have the same problem?)

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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.



More information about the wine-bugs mailing list