Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2016 09:06:46 -0700
From:      John Baldwin <jhb@freebsd.org>
To:        Ed Schouten <ed@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r305952 - head/lib/libc/gen
Message-ID:  <2159167.HKd1T6hK90@ralph.baldwin.cx>
In-Reply-To: <201609182047.u8IKlt4J096682@repo.freebsd.org>
References:  <201609182047.u8IKlt4J096682@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2159167.HKd1T6hK90>