--- rxvt-unicode/src/logging.C 2004/02/13 12:16:21 1.7 +++ rxvt-unicode/src/logging.C 2004/04/08 20:31:45 1.9 @@ -1,5 +1,5 @@ /*--------------------------------*-C-*---------------------------------* - * File: logging.c + * File: logging.C *----------------------------------------------------------------------* * * All portions of code are copyright by their respective author/s. @@ -14,6 +14,7 @@ * - extensive modifications * Copyright (c) 1999 D J Hawkey Jr * - lastlog support + * Copyright (c) 2004 Marc Lehmann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -83,7 +84,7 @@ #endif else if (STRNCMP (pty, "pty", 3) && STRNCMP (pty, "tty", 3)) { - rxvt_print_error ("can't parse tty name \"%s\"", pty); + rxvt_warn ("can't parse tty name \"%s\", not adding utmp entry.\n", pty); return; } @@ -405,9 +406,10 @@ pwent = getpwuid (getuid ()); if (!pwent) { - rxvt_print_error ("no entry in password file"); + rxvt_warn ("no entry in password file, not updating lastlog.\n"); return; } + MEMSET (&ll, 0, sizeof (ll)); ll.ll_time = time (NULL); STRNCPY (ll.ll_line, pty, sizeof (ll.ll_line));