1
0
Fork 0
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:
Stefan Lankes 2016-07-25 07:50:34 +02:00
parent 52ad45072f
commit 449824349b

View file

@ -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;
}