aboutsummaryrefslogtreecommitdiff
path: root/login/programs
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-08-25 06:43:29 +0000
committerUlrich Drepper <drepper@redhat.com>1999-08-25 06:43:29 +0000
commitad65970214c9dfaa6b61b9519cb0667b376e14d9 (patch)
tree49a899fb31d54ee548e11115a8103da7cee151db /login/programs
parent5c8d1fc0f687643184ff7f8fe8e49a36d93bcc4f (diff)
downloadglibc-ad65970214c9dfaa6b61b9519cb0667b376e14d9.zip
glibc-ad65970214c9dfaa6b61b9519cb0667b376e14d9.tar.gz
glibc-ad65970214c9dfaa6b61b9519cb0667b376e14d9.tar.bz2
Update.
* login/pty-private.h: Move to... * sysdeps/generic/pty-private.h: ...here. * sysdeps/unix/sysv/linux/pty-private.h: New file. Linux specific version. * login/programs/pt_chown.c (do_pt_chown): Use unix98_pseudo_p is available.
Diffstat (limited to 'login/programs')
-rw-r--r--login/programs/pt_chown.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/login/programs/pt_chown.c b/login/programs/pt_chown.c
index faec86b..0205364 100644
--- a/login/programs/pt_chown.c
+++ b/login/programs/pt_chown.c
@@ -109,7 +109,13 @@ do_pt_chown (void)
/* Check that the returned slave pseudo terminal is a
character device. */
- if (stat (pty, &st) < 0 || !S_ISCHR(st.st_mode))
+ if (stat (pty, &st) < 0
+#ifdef unix98_pseudo_p
+ || ! unix98_pseudo_p (st.st_rdev)
+#else
+ || !S_ISCHR(st.st_mode)
+#endif
+ )
return FAIL_EINVAL;
/* Get the group ID of the special `tty' group. */