Skip to content

Commit 64c61e1

Browse files
committed
fs: fcntl: return 0 for unknown operations
1 parent 30cb3f9 commit 64c61e1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/syscalls/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,8 @@ pub extern "C" fn sys_fcntl(fd: i32, cmd: i32, arg: i32) -> i32 {
718718
},
719719
)
720720
} else {
721-
-i32::from(Errno::Inval)
721+
warn!("[stub] Unknown fcntl flag {cmd} {arg}, returning 0");
722+
0
722723
}
723724
}
724725

0 commit comments

Comments
 (0)