about summary refs log tree commit diff
path: root/login
diff options
context:
space:
mode:
Diffstat (limited to 'login')
-rw-r--r--login/programs/pt_chown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login/programs/pt_chown.c b/login/programs/pt_chown.c
index 0205364748..4b0768c04c 100644
--- a/login/programs/pt_chown.c
+++ b/login/programs/pt_chown.c
@@ -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