On Mon, Mar 14, 2016 at 02:43:40AM +0100, Ruediger Meier wrote: > > > Ruediger Meier (12): > > > wipefs, sfdisk: include libgen.h for basename(3p) > > > > I'm glad to see use of POSIX basename(), which is the only version > > that musl implements. > > There are still two files to be fixed > login-utils/last.c > login-utils/su-common.c > > On the other hand I thought we could also completely avoid basename(3p) > and use something like our stripoff_last_component() from > lib/fileutils.c. Yep, and maybe also introduce strdup_last_component() in case we don't want to modify the original path. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html