A missing /etc/securetty is not an error when checking the tty name - the
authorRobert Griebl <griebl@gmx.de>
Tue, 3 Dec 2002 19:54:12 +0000 (19:54 -0000)
committerRobert Griebl <griebl@gmx.de>
Tue, 3 Dec 2002 19:54:12 +0000 (19:54 -0000)
comment is right, but the code was wrong ..

loginutils/login.c

index 3050c4c..4a7f13a 100644 (file)
@@ -325,7 +325,7 @@ static int check_tty ( const char *tty )
                return 0;
        }
        /* A missing securetty file is not an error. */
-       return 0;
+       return 1;
 }
 
 #endif