From: Aurelien Jarno Date: Fri, 4 Dec 2015 13:49:03 +0000 (+0100) Subject: Fix grantpt basename namespace bug X-Git-Tag: glibc-2.23~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b51c390f76744ccb76a07869c543db4f68484bd;p=thirdparty%2Fglibc.git Fix grantpt basename namespace bug Commit cf06a4e3 removed test-xfail-POSIX2008/unistd.h/linknamespace, but left one basename namespace issue in grantpt. However this issue is not visible with the default configuration buy only when configure is passed the --enable-pt_chown option. --- diff --git a/ChangeLog b/ChangeLog index 3205cee423d..490cfc77349 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-12-09 Aurelien Jarno + + * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of + basename. + 2015-12-08 Siddhesh Poyarekar * benchtests/Makefile (bench-math): Move ffs and ffsll... diff --git a/sysdeps/unix/grantpt.c b/sysdeps/unix/grantpt.c index c04c85d450f..f019b9db30d 100644 --- a/sysdeps/unix/grantpt.c +++ b/sysdeps/unix/grantpt.c @@ -195,7 +195,7 @@ grantpt (int fd) CLOSE_ALL_FDS (); # endif - execle (_PATH_PT_CHOWN, basename (_PATH_PT_CHOWN), NULL, NULL); + execle (_PATH_PT_CHOWN, __basename (_PATH_PT_CHOWN), NULL, NULL); _exit (FAIL_EXEC); } else