diff options
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/grantpt.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/ptsname.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/grantpt.c b/sysdeps/unix/grantpt.c index 76bda071e7..df155eb23e 100644 --- a/sysdeps/unix/grantpt.c +++ b/sysdeps/unix/grantpt.c @@ -109,7 +109,7 @@ grantpt (int fd) if (pts_name (fd, &buf, sizeof (_buf))) return -1; - if (__stat (buf, &st) < 0) + if (__xstat (_STAT_VER, buf, &st) < 0) goto cleanup; /* Make sure that we own the device. */ diff --git a/sysdeps/unix/sysv/linux/ptsname.c b/sysdeps/unix/sysv/linux/ptsname.c index d852fb3658..5852e2b295 100644 --- a/sysdeps/unix/sysv/linux/ptsname.c +++ b/sysdeps/unix/sysv/linux/ptsname.c @@ -123,7 +123,7 @@ __ptsname_r (int fd, char *buf, size_t buflen) p[2] = '\0'; } - if (__stat (buf, &st) < 0) + if (__xstat (_STAT_VER, buf, &st) < 0) return errno; __set_errno (save_errno); |