diff --git a/fs/vfs/fs_fcntl.c b/fs/vfs/fs_fcntl.c index eafc0fe3bd..91387c0e21 100644 --- a/fs/vfs/fs_fcntl.c +++ b/fs/vfs/fs_fcntl.c @@ -143,6 +143,8 @@ int file_vfcntl(FAR struct file *filep, int cmd, va_list ap) { filep->f_oflags &= ~O_CLOEXEC; } + + ret = OK; } break; diff --git a/net/socket/net_vfcntl.c b/net/socket/net_vfcntl.c index 7b44ca3010..f9cd2e4dbb 100644 --- a/net/socket/net_vfcntl.c +++ b/net/socket/net_vfcntl.c @@ -146,6 +146,8 @@ int psock_vfcntl(FAR struct socket *psock, int cmd, va_list ap) { psock->s_flags &= ~_SF_CLOEXEC; } + + ret = OK; } break;