prog/load: fix argument parsing (treat quotes correctly).
This commit is contained in:
parent
76de9f7439
commit
3294192804
|
@ -579,12 +579,19 @@ static int do_cmd_prog(char **arg, int prog_flags)
|
||||||
{
|
{
|
||||||
FILE *in;
|
FILE *in;
|
||||||
struct prog_data prog;
|
struct prog_data prog;
|
||||||
|
const char *path_arg;
|
||||||
char * path;
|
char * path;
|
||||||
|
|
||||||
|
path_arg = get_arg(arg);
|
||||||
|
if (!path_arg) {
|
||||||
|
printc_err("prog: you need to specify a filename\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
if (prompt_abort(MODIFY_SYMS))
|
if (prompt_abort(MODIFY_SYMS))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
path = expand_tilde(*arg);
|
path = expand_tilde(path_arg);
|
||||||
if (!path)
|
if (!path)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue