]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: use ext2_ino_t instead of ino_t
authorTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2023 20:23:12 +0000 (15:23 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2023 20:23:12 +0000 (15:23 -0500)
commit4d91d64b5a97a27b9e5fbc6cff11ca69ea887cf6
tree9a52442d525ecf53abbea16001f2758b31446eef
parent9fd9c75204c5c1c021fa9911b787e62e9657802e
e2fsck: use ext2_ino_t instead of ino_t

The ino_t type is defined by the system header files, and may be
anything from an unsigned int, unsigned long, or an unsigned long
long.  So where we are referring to an ext2/ext3/ext4 inode number, we
should use ext2_ino_t to avoid this ambiguity, especially when passing
an inode number to a printf-style function.

This was detected via a compiler warning on MacOS, but it's
potentially a real bug, since it can cause an error message to print a
garbled inode number.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/journal.c
e2fsck/pass1.c
e2fsck/rehash.c