You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "xiaoxiang781216 (via GitHub)" <gi...@apache.org> on 2023/08/11 13:07:02 UTC

[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #10176: binfmt: support euid of process set from the file system

xiaoxiang781216 commented on code in PR #10176:
URL: https://github.com/apache/nuttx/pull/10176#discussion_r1291317906


##########
binfmt/elf.c:
##########
@@ -318,6 +319,19 @@ static int elf_loadbinary(FAR struct binary_s *binp,
   binp->ndtors    = loadinfo.ndtors;
 #endif
 
+#ifdef CONFIG_SCHED_USER_IDENTITY
+  /* Save IDs and mode from file system */
+
+  struct stat buf;

Review Comment:
   move buf declaration to the begin



-- 
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