]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/fileutils: add ul_basename()
authorKarel Zak <kzak@redhat.com>
Tue, 2 Jul 2024 09:14:06 +0000 (11:14 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Jul 2024 09:14:06 +0000 (11:14 +0200)
commitff8ee29d648111eb222612ad4251e4c3b236a389
treed638c5e7cb22348a0d51274cfa2b3408e6278c79
parent0588f2480f14a3381553ab7f4498b68055edcc5c
lib/fileutils: add ul_basename()

Unfortunately, the basename() function can be affected by the
creativity of different libc authors, resulting in varying behavior
across implementations.

Instead, use a local implementation to ensure consistency and
portability.

Signed-off-by: Karel Zak <kzak@redhat.com>
include/fileutils.h
lib/fileutils.c