aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2012-02-28 13:15:34 +0100
committerAndreas Jaeger <aj@suse.de>2012-02-28 13:15:34 +0100
commitfabe2a9514d60183408a0bb0d874488852b2814a (patch)
tree380ed57e1dac5a50f7db0b41fa7ca59731c1824f /sysdeps
parent1aff59a3f78e2eea23c5303cede967613bd13bfc (diff)
downloadglibc-fabe2a9514d60183408a0bb0d874488852b2814a.zip
glibc-fabe2a9514d60183408a0bb0d874488852b2814a.tar.gz
glibc-fabe2a9514d60183408a0bb0d874488852b2814a.tar.bz2
Avoid local PLT for dirfd
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/grantpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/grantpt.c b/sysdeps/unix/sysv/linux/grantpt.c
index 0a3cd47..06b696b 100644
--- a/sysdeps/unix/sysv/linux/grantpt.c
+++ b/sysdeps/unix/sysv/linux/grantpt.c
@@ -25,7 +25,7 @@ close_all_fds (void)
{
char *endp;
long int fd = strtol (d->d_name, &endp, 10);
- if (*endp == '\0' && fd != PTY_FILENO && fd != dirfd (dir))
+ if (*endp == '\0' && fd != PTY_FILENO && fd != __dirfd (dir))
close_not_cancel_no_status (fd);
}