]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - login/programs/pt_chown.c
Update.
[thirdparty/glibc.git] / login / programs / pt_chown.c
index 4b0768c04cf0a1cfaf24437d5c7f023459a78aa5..faec86b5495d71e46c2c1948afe1a7e07827f513 100644 (file)
@@ -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.  */