(do_pt_chown): Pass correct value to unix98_pseudo_p.
authordrepper <drepper>
Wed, 25 Aug 1999 15:17:39 +0000 (15:17 +0000)
committerdrepper <drepper>
Wed, 25 Aug 1999 15:17:39 +0000 (15:17 +0000)
login/programs/pt_chown.c

index 0205364..4b0768c 100644 (file)
@@ -111,7 +111,7 @@ do_pt_chown (void)
      character device.  */
   if (stat (pty, &st) < 0
 #ifdef unix98_pseudo_p
-      || ! unix98_pseudo_p (st.st_rdev)
+      || ! unix98_pseudo_p (major (st.st_rdev))
 #else
       || !S_ISCHR(st.st_mode)
 #endif