top: add -m ("memory") option
[oweals/busybox.git] / loginutils / getty.c
index 34b09cecc991abc1372fd2fef31f4d428be6e0f4..838adf2e76b116fe702ec12326a1c08256ae415d 100644 (file)
@@ -239,7 +239,7 @@ static void open_tty(const char *tty)
 //             cur_dir_fd = xopen(".", O_DIRECTORY | O_NONBLOCK);
 //             xchdir("/dev");
 //             xstat(tty, &st);
-//             if ((st.st_mode & S_IFMT) != S_IFCHR)
+//             if (!S_ISCHR(st.st_mode))
 //                     bb_error_msg_and_die("%s: not a character device", tty);
 
                if (tty[0] != '/')