mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
if libc_sd is invalid, the system call open returns an error number
This commit is contained in:
parent
52ad45072f
commit
449824349b
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ int sys_open(const char* name, int flags, int mode)
|
|||
|
||||
spinlock_lock(&lwip_lock);
|
||||
if (libc_sd < 0) {
|
||||
ret = 0;
|
||||
ret = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue