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 cda29f1872dbe90f1a2aa28129d8c983ed1240a2..3050c4c9cf2cdc7719b146d6fd859d066972e047 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