argv0: default to name now, not the path
This commit is contained in:
parent
ce0742d335
commit
22d442b040
@ -270,7 +270,8 @@ fn create_execv_args(entry : & Entry, cmdargs : &Vec<String>) -> Vec<* const lib
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
args.insert(0, to_cstring(&entry.cmd));
|
let cmdbegin = &entry.cmd.rfind("/").unwrap() + 1;
|
||||||
|
args.insert(0, to_cstring(&entry.cmd.split_at(cmdbegin).1));
|
||||||
}
|
}
|
||||||
args.push(std::ptr::null());
|
args.push(std::ptr::null());
|
||||||
return args;
|
return args;
|
||||||
|
Loading…
Reference in New Issue
Block a user