*** empty log message ***
authorroot <root>
Wed, 25 Jan 2006 11:16:09 +0000 (11:16 +0000)
committerroot <root>
Wed, 25 Jan 2006 11:16:09 +0000 (11:16 +0000)
src/logging.C
src/proxy.C

index bf583cbc81832ee870b9e9d871cc656aec28bf48..e4d63c3c2938b84d28bae56a6377eb41d8fd2611 100644 (file)
@@ -18,7 +18,7 @@
  * Copyright (c) 1999      D J Hawkey Jr <hawkeyd@visi.com>
  *                             - lastlog support
  * Copyright (c) 2004-2006 Marc Lehmann <pcg@goof.com>
- * Copyright (c) 2006 Emanuele Giaquinta <e.giaquinta@glauco.it>
+ * Copyright (c) 2006      Emanuele Giaquinta <e.giaquinta@glauco.it>
  *
  * 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
 
 #include "../config.h"
 
+#include "ptytty.h"
+
+#if UTMP_SUPPORT
+
 #include <cstdio>
 
 #include <sys/types.h>
 #include <unistd.h>
 #include <time.h>
 
-#include "ptytty.h"
-
-#if UTMP_SUPPORT
-
 #if HAVE_STRUCT_UTMP
 static int              write_bsd_utmp              (int utmp_pos, struct utmp *wu);
 static void             update_wtmp                 (const char *fname, const struct utmp *putmp);
@@ -428,7 +428,7 @@ update_lastlog (const char *fname, const char *pty, const char *host)
   pwent = getpwuid (getuid ());
   if (!pwent)
     {
-      ptytty_warn ("no entry in password file, not updating lastlog.\n");
+      ptytty_warn ("no entry in password file, not updating lastlog.\n", 0);
       return;
     }
 
index 4274f2dc71a6114bbf399a6c3330dd22c01fd5b7..9fba2396076ed507394ca537bda7436e7b061c4c 100644 (file)
@@ -305,7 +305,7 @@ ptytty::init ()
 #if PTYTTY_HELPER
       use_helper ();
 #else
-      ptytty_warn ("running setuid/setgid without pty helper compiled in, continuing unprivileged.\n");
+      ptytty_warn ("running setuid/setgid without pty helper compiled in, continuing unprivileged.\n", 0);
 #endif
 
       drop_privileges ();