projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74dfbbb
)
(grantpt): Change check of return value of __ptsname_r accordingly.
author
drepper
<drepper>
Tue, 7 Apr 1998 09:08:50 +0000
(09:08 +0000)
committer
drepper
<drepper>
Tue, 7 Apr 1998 09:08:50 +0000
(09:08 +0000)
sysdeps/unix/grantpt.c
patch
|
blob
|
history
diff --git
a/sysdeps/unix/grantpt.c
b/sysdeps/unix/grantpt.c
index
65a0d98
..
24f0e17
100644
(file)
--- a/
sysdeps/unix/grantpt.c
+++ b/
sysdeps/unix/grantpt.c
@@
-47,9
+47,9
@@
grantpt (fd)
char namebuf[PTYNAMELEN];
/* Some systems do it for us. */
- if (__ptsname_r (fd, namebuf, PTYNAMELEN)
== NULL
)
+ if (__ptsname_r (fd, namebuf, PTYNAMELEN)
!= 0
)
return -1;
- if (
stat (namebuf, &st)
)
+ if (
__xstat (_STAT_VER, namebuf, &st) != 0
)
return -1;
if (st.st_uid == getuid ())