Re: [PATCH 00/12] another BSD/OSX related patch-set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux