diff options
author | Chris Johns <chrisj@rtems.org> | 2023-07-20 14:05:33 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2023-07-21 14:55:50 +1000 |
commit | 60e40e9b83414b43c60bea47f628dd1f60f018b6 (patch) | |
tree | 2ecd010d54a0b0325a3414e47c67133591622daa | |
parent | freebsd/if_cgem: Remove QEMU workaround (diff) | |
download | rtems-libbsd-60e40e9b83414b43c60bea47f628dd1f60f018b6.tar.bz2 |
freenbsd/vfs: VFS attributes need to have the same size mode_t variable
If the size in the attributes struct does not match the mode_t the
VNOVAL checks fail because size of the values are not the same.
Updates #4723
-rw-r--r-- | freebsd/sys/sys/vnode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/sys/sys/vnode.h b/freebsd/sys/sys/vnode.h index d297c931..ddb9ac30 100644 --- a/freebsd/sys/sys/vnode.h +++ b/freebsd/sys/sys/vnode.h @@ -266,8 +266,12 @@ struct xvnode { */ struct vattr { enum vtype va_type; /* vnode type (for create) */ +#ifndef __rtems__ u_short va_mode; /* files access mode and type */ u_short va_padding0; +#else /* __rtems__ */ + mode_t va_mode; /* files access mode and type */ +#endif /* __rtems__ */ uid_t va_uid; /* owner user id */ gid_t va_gid; /* owner group id */ nlink_t va_nlink; /* number of references to file */ |