Null parameters need to be quoted on the commandline.
This commit is contained in:
parent
fc86392af8
commit
99c67eefcd
|
@ -538,6 +538,7 @@ BOOL build_command_line( char **argv )
|
||||||
has_space=0;
|
has_space=0;
|
||||||
bcount=0;
|
bcount=0;
|
||||||
a=*arg;
|
a=*arg;
|
||||||
|
if( !*a ) has_space=1;
|
||||||
while (*a!='\0') {
|
while (*a!='\0') {
|
||||||
if (*a=='\\') {
|
if (*a=='\\') {
|
||||||
bcount++;
|
bcount++;
|
||||||
|
@ -573,6 +574,7 @@ BOOL build_command_line( char **argv )
|
||||||
/* Check for quotes and spaces in this argument */
|
/* Check for quotes and spaces in this argument */
|
||||||
has_space=has_quote=0;
|
has_space=has_quote=0;
|
||||||
a=*arg;
|
a=*arg;
|
||||||
|
if( !*a ) has_space=1;
|
||||||
while (*a!='\0') {
|
while (*a!='\0') {
|
||||||
if (*a==' ' || *a=='\t') {
|
if (*a==' ' || *a=='\t') {
|
||||||
has_space=1;
|
has_space=1;
|
||||||
|
|
|
@ -97,6 +97,7 @@ int main (int argc, char *argv[])
|
||||||
has_space=0;
|
has_space=0;
|
||||||
bcount=0;
|
bcount=0;
|
||||||
a=*arg;
|
a=*arg;
|
||||||
|
if( !*a ) has_space=1;
|
||||||
while (*a!='\0') {
|
while (*a!='\0') {
|
||||||
if (*a=='\\') {
|
if (*a=='\\') {
|
||||||
bcount++;
|
bcount++;
|
||||||
|
@ -131,6 +132,7 @@ int main (int argc, char *argv[])
|
||||||
/* Check for quotes and spaces in this argument */
|
/* Check for quotes and spaces in this argument */
|
||||||
has_space=has_quote=0;
|
has_space=has_quote=0;
|
||||||
a=*arg;
|
a=*arg;
|
||||||
|
if( !*a ) has_space=1;
|
||||||
while (*a!='\0') {
|
while (*a!='\0') {
|
||||||
if (*a==' ' || *a=='\t') {
|
if (*a==' ' || *a=='\t') {
|
||||||
has_space=1;
|
has_space=1;
|
||||||
|
|
|
@ -48,6 +48,7 @@ static char *build_command_line( char **argv )
|
||||||
has_space=0;
|
has_space=0;
|
||||||
bcount=0;
|
bcount=0;
|
||||||
a=*arg;
|
a=*arg;
|
||||||
|
if( !*a ) has_space=1;
|
||||||
while (*a!='\0') {
|
while (*a!='\0') {
|
||||||
if (*a=='\\') {
|
if (*a=='\\') {
|
||||||
bcount++;
|
bcount++;
|
||||||
|
@ -82,6 +83,7 @@ static char *build_command_line( char **argv )
|
||||||
/* Check for quotes and spaces in this argument */
|
/* Check for quotes and spaces in this argument */
|
||||||
has_space=has_quote=0;
|
has_space=has_quote=0;
|
||||||
a=*arg;
|
a=*arg;
|
||||||
|
if( !*a ) has_space=1;
|
||||||
while (*a!='\0') {
|
while (*a!='\0') {
|
||||||
if (*a==' ' || *a=='\t') {
|
if (*a==' ' || *a=='\t') {
|
||||||
has_space=1;
|
has_space=1;
|
||||||
|
|
Loading…
Reference in New Issue