This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Hurd".
The branch, master has been updated
via 054275aab67c13cbb3ce08daba1c321ed266cac7 (commit)
from 11f5cfeb6940f9f01aaff349ae658bbffbccf900 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 054275aab67c13cbb3ce08daba1c321ed266cac7
Author: Milos Nikic <[email protected]>
Date: Fri Mar 27 20:54:58 2026 -0700
libdiskfs: Replace enum lookup_type with a typedef lookup_flags_t
In diskfs_lookup (and its variants), the enum lookup_type is passed in and
expected. However, this base type is sometimes OR'd with SPEC_DOTDOT,
creating a bitwise value (e.g., 268435459 on 64-bit architectures) that
falls outside the valid range of the lookup_type enum. In modern C, this
results in Undefined Behavior (UB) and triggers static analyzer warnings.
Replace the use of the raw enum in these function signatures with a
dedicated typedef (lookup_flags_t). This avoids the UB, modernizes the
API, and safely signals that bitwise math is expected, improving overall
type safety.
This patch also adds include diskfs.h in places where its needed, and
removes
one priv.h from where it isn't needed.
Message-ID: <[email protected]>
-----------------------------------------------------------------------
Summary of changes:
ext2fs/dir.c | 12 +++++++-----
fatfs/dir.c | 12 +++++++-----
isofs/lookup.c | 10 ++++++----
libdiskfs/diskfs.h | 11 +++++++++--
libdiskfs/lookup.c | 20 ++++++++++----------
tmpfs/dir.c | 11 ++++++-----
6 files changed, 45 insertions(+), 31 deletions(-)
hooks/post-receive
--
Hurd