date and time created 88/12/14 16:21:47 by marc
[unix-history] / usr / src / usr.bin / login / login.c.1
index 4c91d6b..c2a07cf 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)login.c.1  5.22 (Berkeley) %G%";
+static char sccsid[] = "@(#)login.c.1  5.23 (Berkeley) %G%";
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -263,7 +263,7 @@ main(argc, argv)
                /*
                 * If user not super-user, check for logins disabled.
                 */
                /*
                 * If user not super-user, check for logins disabled.
                 */
-               if (pwd->pw_uid != 0 && (nlfd = fopen(nolog, "r")) > 0) {
+               if (pwd->pw_uid != 0 && (nlfd = fopen(nolog, "r"))) {
                        while ((c = getc(nlfd)) != EOF)
                                putchar(c);
                        fflush(stdout);
                        while ((c = getc(nlfd)) != EOF)
                                putchar(c);
                        fflush(stdout);