svn commit: r305952 - head/lib/libc/gen

John Baldwin jhb at freebsd.org
Mon Sep 19 16:59:55 UTC 2016


On Sunday, September 18, 2016 08:47:55 PM Ed Schouten wrote:
> Author: ed
> Date: Sun Sep 18 20:47:55 2016
> New Revision: 305952
> URL: https://svnweb.freebsd.org/changeset/base/305952
> 
> Log:
>   Replace dirname(3) by a copy that complies to POSIX.
>   
>   It turns out that the path normalization that our brand new copy of
>   dirname(3) does is actually not allowed by the draft version of the
>   upcoming version of POSIX. It has to behave identically to the
>   dirname(1) utility.
>   
>   This change replaces our new dirname(3) implementation by yet another
>   version that doesn't implement the path normalization logic; it merely
>   looks for the end of the directory name and overwrites that with a null
>   byte.
>   
>   More details: See note #3370 at http://austingroupbugs.net/view.php?id=1073

Don't you need the _Generic hack we have for basename now?

-- 
John Baldwin


More information about the svn-src-all mailing list