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.
This commit is contained in:
Aurelien Jarno 2015-12-04 14:49:03 +01:00
parent aad287f35a
commit 3b51c390f7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-12-09 Aurelien Jarno <aurelien@aurel32.net>
* sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
basename.
2015-12-08 Siddhesh Poyarekar <sid@reserved-bit.com>
* benchtests/Makefile (bench-math): Move ffs and ffsll...

View File

@ -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