about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2015-12-04 14:49:03 +0100
committerAurelien Jarno <aurelien@aurel32.net>2015-12-09 19:03:43 +0100
commit3b51c390f76744ccb76a07869c543db4f68484bd (patch)
treee337ddcf022f65bed11cca1c1180aac3de820413 /sysdeps
parentaad287f35a801a4b53b27d7e2a8cb54fb708fb97 (diff)
downloadglibc-3b51c390f76744ccb76a07869c543db4f68484bd.tar.gz
glibc-3b51c390f76744ccb76a07869c543db4f68484bd.tar.xz
glibc-3b51c390f76744ccb76a07869c543db4f68484bd.zip
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.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/grantpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/grantpt.c b/sysdeps/unix/grantpt.c
index c04c85d450..f019b9db30 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