1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

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

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