Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/login LOG_ODELAY is deprecated. use LOG_ERR for fata...



details:   https://anonhg.NetBSD.org/src/rev/d9a9a1765994
branches:  trunk
changeset: 502005:d9a9a1765994
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jan 10 12:24:38 2001 +0000

description:
LOG_ODELAY is deprecated. use LOG_ERR for fatal errors

diffstat:

 usr.bin/login/login.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 3bda84477bbd -r d9a9a1765994 usr.bin/login/login.c
--- a/usr.bin/login/login.c     Wed Jan 10 12:23:57 2001 +0000
+++ b/usr.bin/login/login.c     Wed Jan 10 12:24:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: login.c,v 1.62 2001/01/01 20:19:06 thorpej Exp $       */
+/*     $NetBSD: login.c,v 1.63 2001/01/10 12:24:38 lukem Exp $       */
 
 /*-
  * Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)login.c    8.4 (Berkeley) 4/2/94";
 #endif
-__RCSID("$NetBSD: login.c,v 1.62 2001/01/01 20:19:06 thorpej Exp $");
+__RCSID("$NetBSD: login.c,v 1.63 2001/01/10 12:24:38 lukem Exp $");
 #endif /* not lint */
 
 /*
@@ -211,7 +211,7 @@
        (void)signal(SIGINT, SIG_IGN);
        (void)setpriority(PRIO_PROCESS, 0, 0);
 
-       openlog("login", LOG_ODELAY, LOG_AUTH);
+       openlog("login", 0, LOG_AUTH);
 
        /*
         * -p is used by getty to tell login not to destroy the environment
@@ -637,7 +637,7 @@
 #ifdef LOGIN_CAP
        if ((shell = login_getcapstr(lc, "shell", NULL, NULL)) != NULL) {
                if ((shell = strdup(shell)) == NULL) {
-                       syslog(LOG_NOTICE, "Cannot alloc mem");
+                       syslog(LOG_ERR, "Cannot alloc mem");
                        sleepexit(1);
                }
                pwd->pw_shell = shell;



Home | Main Index | Thread Index | Old Index