This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 992719730f Fix hostfs after uid/gid changes
992719730f is described below

commit 992719730f355ed3132c3204153f919822870074
Author: YAMAMOTO Takashi <[email protected]>
AuthorDate: Mon Dec 25 18:52:53 2023 +0900

    Fix hostfs after uid/gid changes
    
    This fixes a regression in https://github.com/apache/nuttx/pull/10869
---
 include/nuttx/fs/hostfs.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/nuttx/fs/hostfs.h b/include/nuttx/fs/hostfs.h
index 07e5f1f00b..cc175cbc45 100644
--- a/include/nuttx/fs/hostfs.h
+++ b/include/nuttx/fs/hostfs.h
@@ -108,8 +108,13 @@
 /* These must match the definitions in include/sys/types.h */
 
 typedef int16_t      nuttx_blksize_t;
+#ifdef CONFIG_SMALL_MEMORY
 typedef int16_t      nuttx_gid_t;
 typedef int16_t      nuttx_uid_t;
+#else
+typedef unsigned int nuttx_gid_t;
+typedef unsigned int nuttx_uid_t;
+#endif
 typedef uint32_t     nuttx_dev_t;
 typedef uint16_t     nuttx_ino_t;
 typedef uint16_t     nuttx_nlink_t;

Reply via email to