HomeFreeBSD

linux(4): Properly allocate buffer for kern_getdirentries in readdir

Description

linux(4): Properly allocate buffer for kern_getdirentries in readdir

Looks like prior to ino64 project the size of the struct linux_dirent
was greater (or equal) to the size of the native struct dirent so the
native dirent fit into the buffer. After ino64 project the size of the
native struct dirent has increased.

Spotted by gcc12.
MFC after: 2 weeks

Details

Provenance
dchaginAuthored on Jul 18 2023, 9:44 PM
Parents
rG9efad6f9e108: add defaults for adduser.sh (OK? [yes] & additional user [no])
Branches
Unknown
Tags
Unknown