summaryrefslogtreecommitdiff
path: root/login/programs
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-08-25 17:57:34 +0000
committerUlrich Drepper <drepper@redhat.com>1999-08-25 17:57:34 +0000
commit2a947279decefbde636886be3ff54333e0c8f4dd (patch)
tree3582524fc632058625762b052f0d127ce8681b6d /login/programs
parent2f44482393e9cf16c75cdf6226d07c69b7f21e95 (diff)
downloadglibc-2a947279decefbde636886be3ff54333e0c8f4dd.tar.gz
Update.
1999-08-25 Mark Kettenis <kettenis@gnu.org> * sysdeps/unix/sysv/linux/ptsname.c: Add checks to make sure we're really dealing with a master pseudo terminal, and really returning the name of the associated slave pseudo terminal by checking the device number. * sysdeps/unix/sysv/linux/pty-private.h: Removed. * login/programs/pt_chown.c (do_pt_chown): Don't use unix98_pseudo_p.
Diffstat (limited to 'login/programs')
-rw-r--r--login/programs/pt_chown.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/login/programs/pt_chown.c b/login/programs/pt_chown.c
index 4b0768c04c..faec86b549 100644
--- a/login/programs/pt_chown.c
+++ b/login/programs/pt_chown.c
@@ -109,13 +109,7 @@ do_pt_chown (void)
/* Check that the returned slave pseudo terminal is a
character device. */
- if (stat (pty, &st) < 0
-#ifdef unix98_pseudo_p
- || ! unix98_pseudo_p (major (st.st_rdev))
-#else
- || !S_ISCHR(st.st_mode)
-#endif
- )
+ if (stat (pty, &st) < 0 || !S_ISCHR(st.st_mode))
return FAIL_EINVAL;
/* Get the group ID of the special `tty' group. */