Closed
Bug 333637
Opened 19 years ago
Closed 17 years ago
PR_CreateProcess() function drops empty string parameters
Categories
(NSPR :: NSPR, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
4.7
People
(Reporter: aleksey, Assigned: wtc)
Details
Attachments
(1 file, 1 obsolete file)
1.12 KB,
patch
|
Details | Diff | Splinter Review |
E.g. there is no way to execute the following command line:
something.exe "" something.txt
because assembleCmdLine() function in ntmisc.c file creates the following command line:
something.exe something.txt
The patch is coming.
Reporter | ||
Comment 1•19 years ago
|
||
Reporter | ||
Updated•19 years ago
|
Attachment #218094 -
Flags: review?
Assignee | ||
Comment 2•19 years ago
|
||
Comment on attachment 218094 [details] [diff] [review]
Patch
r=wtc. Thanks for the patch. Have you tested this patch?
(I may be too busy to test the patch.)
>+ if ((**arg) == '\0' || strpbrk(*arg, " \f\n\r\t\v")) {
> argNeedQuotes = 1;
> }
I'm curious why you put parentheses around **arg.
Attachment #218094 -
Flags: review? → review+
Reporter | ||
Comment 3•19 years ago
|
||
hm... it looks better? :) yes, I did test it though not very extensivly.
Assignee | ||
Updated•18 years ago
|
Target Milestone: --- → 4.7
Updated•18 years ago
|
QA Contact: wtchang → nspr
Comment 4•17 years ago
|
||
is this ready for check in?
Assignee | ||
Comment 5•17 years ago
|
||
Yes, it is. Sorry, I forgot to check in this patch.
I just checked in this patch on the NSPR trunk for NSPR 4.7.
Checking in ntmisc.c;
/cvsroot/mozilla/nsprpub/pr/src/md/windows/ntmisc.c,v <-- ntmisc.c
new revision: 3.22; previous revision: 3.21
done
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 6•17 years ago
|
||
Attachment #218094 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•