From: Ulrich Drepper Date: Wed, 25 Nov 2009 02:47:26 +0000 (-0800) Subject: Avoid local PLTs. X-Git-Tag: glibc-2.11.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc207ace446b2e0fc4a474a2a4cf945d9cca6573;p=thirdparty%2Fglibc.git Avoid local PLTs. (cherry picked from commit 0f622686af3ae5a8f03dae886b08c260b38bda16) --- diff --git a/sysdeps/unix/sysv/linux/grantpt.c b/sysdeps/unix/sysv/linux/grantpt.c index 6305ed4944b..f2fc60f83a5 100644 --- a/sysdeps/unix/sysv/linux/grantpt.c +++ b/sysdeps/unix/sysv/linux/grantpt.c @@ -15,11 +15,11 @@ static void close_all_fds (void) { - DIR *dir = opendir ("/proc/self/fd"); + DIR *dir = __opendir ("/proc/self/fd"); if (dir != NULL) { struct dirent64 *d; - while ((d = readdir64 (dir)) != NULL) + while ((d = __readdir64 (dir)) != NULL) if (isdigit (d->d_name[0])) { char *endp; @@ -28,7 +28,7 @@ close_all_fds (void) close_not_cancel_no_status (fd); } - closedir (dir); + __closedir (dir); int nullfd = open_not_cancel_2 (_PATH_DEVNULL, O_RDONLY); assert (nullfd == STDIN_FILENO);