You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "fjpanag (via GitHub)" <gi...@apache.org> on 2023/06/08 18:52:22 UTC
[GitHub] [nuttx] fjpanag commented on a diff in pull request #9496: libc/fdsan: keep f_tag unchanged
fjpanag commented on code in PR #9496:
URL: https://github.com/apache/nuttx/pull/9496#discussion_r1223429884
##########
fs/inode/fs_files.c:
##########
@@ -525,6 +525,11 @@ int nx_dup2_from_tcb(FAR struct tcb_s *tcb, int fd1, int fd2)
ret = file_dup2(&list->fl_files[fd1 / CONFIG_NFILE_DESCRIPTORS_PER_BLOCK]
[fd1 % CONFIG_NFILE_DESCRIPTORS_PER_BLOCK],
filep);
+
+#ifdef CONFIG_FDSAN
+ filep->f_tag = file.f_tag;
Review Comment:
If you make any changes, you may ping me to re-test.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org