mirror of https://github.com/mirror/busybox.git
hush: fix 'eval ""' handling
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_26_stable
parent
992e0ff7e9
commit
78c9c736ab
|
@ -0,0 +1,3 @@
|
|||
Zero:0
|
||||
Zero:0
|
||||
Zero:0
|
|
@ -0,0 +1,4 @@
|
|||
false; eval; echo Zero:$?
|
||||
false; eval ""; echo Zero:$?
|
||||
false; eval "
|
||||
"; echo Zero:$?
|
|
@ -5679,7 +5679,7 @@ static char* expand_strvec_to_string(char **argv)
|
|||
n++;
|
||||
}
|
||||
}
|
||||
overlapping_strcpy((char*)list, list[0]);
|
||||
overlapping_strcpy((char*)list, list[0] ? list[0] : "");
|
||||
debug_printf_expand("strvec_to_string='%s'\n", (char*)list);
|
||||
return (char*)list;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
Zero:0
|
||||
Zero:0
|
||||
Zero:0
|
|
@ -0,0 +1,4 @@
|
|||
false; eval; echo Zero:$?
|
||||
false; eval ""; echo Zero:$?
|
||||
false; eval "
|
||||
"; echo Zero:$?
|
Loading…
Reference in New Issue