]> git.ipfire.org Git - thirdparty/util-linux.git/commit
treewide: use is_dotdir_dirent() helper
authorKarel Zak <kzak@redhat.com>
Wed, 15 Oct 2025 13:46:06 +0000 (15:46 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 15 Oct 2025 13:46:06 +0000 (15:46 +0200)
commit7f0f877672b7189f20a2429b323ddd475e5d8acd
tree80bb1d700ce3ef646bdf5d035ab2a1d0642801c1
parent001f3a6d69403db2ec8a375a3255e4b5d1369890
treewide: use is_dotdir_dirent() helper

This simplifies the code by using the is_dotdir_dirent() helper
function instead of manual strcmp() checks for "." and ".." directory
entries across multiple utilities.

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/partx.c
lib/loopdev.c
libsmartcols/samples/tree.c
misc-utils/whereis.c
sys-utils/eject.c
sys-utils/switch_root.c