diff options
author | Andreas Jaeger <aj@suse.de> | 2012-02-28 13:15:34 +0100 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2012-02-28 13:15:34 +0100 |
commit | fabe2a9514d60183408a0bb0d874488852b2814a (patch) | |
tree | 380ed57e1dac5a50f7db0b41fa7ca59731c1824f /sysdeps | |
parent | 1aff59a3f78e2eea23c5303cede967613bd13bfc (diff) | |
download | glibc-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.c | 2 |
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); } |