From b065ab2dd8c039f8042d8c54bdc1b8a662cf0c5f Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Jan 2006 11:16:09 +0000 Subject: [PATCH] *** empty log message *** --- src/logging.C | 12 ++++++------ src/proxy.C | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/logging.C b/src/logging.C index bf583cbc..e4d63c3c 100644 --- a/src/logging.C +++ b/src/logging.C @@ -18,7 +18,7 @@ * Copyright (c) 1999 D J Hawkey Jr * - lastlog support * Copyright (c) 2004-2006 Marc Lehmann - * Copyright (c) 2006 Emanuele Giaquinta + * Copyright (c) 2006 Emanuele Giaquinta * * 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 @@ -37,6 +37,10 @@ #include "../config.h" +#include "ptytty.h" + +#if UTMP_SUPPORT + #include #include @@ -45,10 +49,6 @@ #include #include -#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; } diff --git a/src/proxy.C b/src/proxy.C index 4274f2dc..9fba2396 100644 --- a/src/proxy.C +++ b/src/proxy.C @@ -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 (); -- 2.34.1