Check exec args

master
Jiajie Chen 6 years ago
parent f88cffb8ab
commit 8115256162

@ -146,6 +146,9 @@ pub fn sys_exec(
}
}
info!("exec: args {:?}", args);
if args.is_empty() {
return Err(SysError::EINVAL);
}
// Read program file
let path = args[0].as_str();

Loading…
Cancel
Save