summaryrefslogtreecommitdiffstats
path: root/nuttx/fs/fs_fcntl.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/fs/fs_fcntl.c')
-rw-r--r--nuttx/fs/fs_fcntl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nuttx/fs/fs_fcntl.c b/nuttx/fs/fs_fcntl.c
index 524bd22b0c..d8afd51a20 100644
--- a/nuttx/fs/fs_fcntl.c
+++ b/nuttx/fs/fs_fcntl.c
@@ -94,6 +94,11 @@ static inline int file_vfcntl(int fildes, int cmd, va_list ap)
* exec functions.
*/
+ {
+ ret = file_dup(fildes, va_arg(ap, int));
+ }
+ break;
+
case F_GETFD:
/* Get the file descriptor flags defined in <fcntl.h> that are associated
* with the file descriptor fildes. File descriptor flags are associated