xiaoxiang781216 commented on a change in pull request #2639:
URL: https://github.com/apache/incubator-nuttx/pull/2639#discussion_r550951057



##########
File path: fs/vfs/fs_dupfd.c
##########
@@ -73,7 +73,7 @@ int file_dup(FAR struct file *filep, int minfd)
   fd2 = files_allocate(NULL, 0, 0, minfd);
   if (fd2 < 0)
     {
-      return -EMFILE;
+      return fd2;

Review comment:
       Yes, see here:
   
https://github.com/apache/incubator-nuttx/pull/2639/files#diff-1fafb74ef7557187f97e4ffa7b8d30c3e6edc1df89cc952ecab48fdbe86e637fL334




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to