[ros-bugs] [Bug 2216] New: mkdir bug based on wrong sub

ReactOS.Bugzilla at www.reactos.org ReactOS.Bugzilla at www.reactos.org
Fri Apr 27 18:12:49 CEST 2007


http://www.reactos.org/bugzilla/show_bug.cgi?id=2216

           Summary: mkdir bug based on wrong sub
           Product: ReactOS
           Version: TRUNK
          Platform: x86 Hardware
        OS/Version: ReactOS
            Status: NEW
          Severity: critical
          Priority: P3
         Component: Shell
        AssignedTo: ros-bugs at reactos.org
        ReportedBy: heis_spiter at hotmail.com
         QAContact: ros-bugs at reactos.org


I've tried to use mkdir to create all those dirs : E:\testdir\test\pouet\.
What I got was : E:\tes & E:\testd & E:\testdir. Not what I want.

I've tried to identify the bug. I've done like that : used the same code as we
can find in internal.c and "commented and decorated it". Finally I compile it
with the same compiler (both my IDE and RosBE use the same GCC 4.1.2) but with
standard headers. And it works fine !
Then I do the same comments and decoration on internal.c to discover where was
the problem. It seems to be there : n = p - DirPath + 1; (~ line 450).

Here is the normal output (that works fine) : 
Received : E:\testdir\test\pouet\
Received : \testdir\test\pouet\
Received : testdir\test\pouet\
p : \test\pouet\
n : 11
path : E:\testdir\
Create : E:\testdir\
p : \pouet\
n : 16
path : E:\testdir\test\
Create : E:\testdir\test\
p : \
n : 22
path : E:\testdir\test\pouet\=
Create : E:\testdir\test\pouet\

Here is the wrong output of ReactOS : 
Received : E:\testdir\test\pouet\
Received : \testdir\test\pouet\
Received : testdir\test\pouet\
p : \test\pouet\
n : 4008388
path : E:\tes
Create : E:\tes
p : \pouet\
n : 4008398
path : E:\testd
Create : E:\testd
p : \
n : 4008410
path : E:\testdir\
Create : E:\testdir\

I can send code I used for my tests if you want to check.


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
You are the assignee for the bug, or are watching the assignee.


More information about the Ros-bugs mailing list