A missing securetty file is not an error.
authorEric Andersen <andersen@codepoet.org>
Thu, 14 Nov 2002 10:58:17 +0000 (10:58 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 14 Nov 2002 10:58:17 +0000 (10:58 -0000)
 -Erik

loginutils/login.c

index cda29f1..3050c4c 100644 (file)
@@ -324,10 +324,8 @@ static int check_tty ( const char *tty )
                fclose(fp);
                return 0;
        }
-       else {
-               syslog ( LOG_WARNING, "cannot open securetty file.\n" );
-               return 1;
-       }
+       /* A missing securetty file is not an error. */
+       return 0;
 }
 
 #endif