summaryrefslogtreecommitdiff
path: root/libc/stdlib/ptsname.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/ptsname.c')
-rw-r--r--libc/stdlib/ptsname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/ptsname.c b/libc/stdlib/ptsname.c
index 636e9c121..74f3e87d9 100644
--- a/libc/stdlib/ptsname.c
+++ b/libc/stdlib/ptsname.c
@@ -160,7 +160,7 @@ int ptsname_r (int fd, char *buf, size_t buflen)
p[2] = '\0';
}
- if (__xstat (_STAT_VER, buf, &st) < 0)
+ if (stat(buf, &st) < 0)
return errno;
/* Check if the name we're about to return really corresponds to a