]> Savannah Git Hosting - gnulib.git/commit
getprogname: avoid __progname vs program_invocation_short_name pitfall
authorJim Meyering <meyering@fb.com>
Thu, 29 Sep 2016 03:57:24 +0000 (20:57 -0700)
committerJim Meyering <meyering@fb.com>
Thu, 29 Sep 2016 04:07:26 +0000 (21:07 -0700)
commitaf62896a5bd7c63b9569813a0eff11b6b4ab665d
tree4380a2001f9535c344a9a9bdb463052d3d6b3895
parent9a8bf3b56cdd6b40b7da44b94b0023d95867784e
getprogname: avoid __progname vs program_invocation_short_name pitfall

I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
not with Fedora 24's glibc-2.23.1-10.
* lib/getprogname.c (__progname): Move this declaration down...
(getprogname): ... into the #elif block where used, and make it
explicitly "extern".
ChangeLog
lib/getprogname.c