about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/ptsname.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-12-13 14:52:55 +0000
committerUlrich Drepper <drepper@redhat.com>1998-12-13 14:52:55 +0000
commit550be6cdb0585fb7c5ec32d583b40ab6ef5daed1 (patch)
treeb5296d324fac9519cb4f9d25b8cda4766f5cdb69 /sysdeps/unix/sysv/linux/ptsname.c
parent3bb266e0101d17db7812daef1a7fe0aaa97b7e47 (diff)
downloadglibc-550be6cdb0585fb7c5ec32d583b40ab6ef5daed1.tar.gz
glibc-550be6cdb0585fb7c5ec32d583b40ab6ef5daed1.tar.xz
glibc-550be6cdb0585fb7c5ec32d583b40ab6ef5daed1.zip
Update.
1998-12-13  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/posix/tempname.c: Use __xstat instead of __stat.
	* sysdeps/unix/grantpt.c: Likewise.
	* sysdeps/unix/sysv/linux/ptsname.c: Likewise.
	* sysvipc/ftok.c: Likewise.
	Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
Diffstat (limited to 'sysdeps/unix/sysv/linux/ptsname.c')
-rw-r--r--sysdeps/unix/sysv/linux/ptsname.c2
1 files changed, 1 insertions, 1 deletions
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);