+2009-04-19 Paul Szabo <psz@maths.usyd.edu.au>
+
+ * libmisc/utmp.c: Always call endutent or endutxent when setutent
+ or setutxent were used.
+
2009-04-19 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Added comment to make sure PAM_RHOST or PAM_TTY do
/* Sanitize / set the ut_line field */
strncpy (utent.ut_line, line, sizeof utent.ut_line);
+
+ endutent ();
}
#elif defined(LOGIN_PROCESS)
utent.ut_time = utxent.ut_tv.tv_sec;
#endif
}
+
+#if HAVE_UTMPX_H
+ endutxent ();
+#endif
+ endutent ();
}
#endif
utxent = utxline;
utent = utline;
+ endutxent ();
+ endutent ();
+
return err;
}