Revert 'Fix off by one error' because it introduces one

Turns out, it's just redox not having a NULL pointer here. Linux does.
This commit is contained in:
jD91mZM2
2018-08-13 11:37:29 +02:00
parent d5f85906cb
commit 66d7aa8553
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -201,7 +201,7 @@ pub unsafe extern "C" fn execve(
) -> c_int {
use alloc::Vec;
let fd = match RawFile::open(path, 0, 0) {
let fd = match RawFile::open(path, O_RDONLY as c_int, 0) {
Ok(fd) => fd,
Err(_) => return -1
};