* 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);
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;
}
#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 ();