+Sun Dec 21 18:17:53 1997 Tom Yu <tlyu@mit.edu>
+
+ * logwtmp.c (ftp_logwtmp): Rename logwtmp to ftp_logwtmp to avoid
+ collision with native logwtmp. Also, return void rather than
+ int.
+
+ * ftpd.c: Rename logwtmp to ftp_logwtmp to avoid collision with
+ native logwtmp.
+
Thu Dec 11 23:28:07 1997 Tom Yu <tlyu@mit.edu>
* ftpd.c: Don't include netdb.h or sys/socket.h if krb.h is
(void) seteuid((uid_t)0);
if (logged_in)
- logwtmp(ttyline, "", "");
+ ftp_logwtmp(ttyline, "", "");
pw = NULL;
logged_in = 0;
guest = 0;
/* open wtmp before chroot */
(void)sprintf(ttyline, "ftp%d", getpid());
- logwtmp(ttyline, pw->pw_name, remotehost);
+ ftp_logwtmp(ttyline, pw->pw_name, remotehost);
logged_in = 1;
if (guest) {
{
if (logged_in) {
(void) seteuid((uid_t)0);
- logwtmp(ttyline, "", "");
+ ftp_logwtmp(ttyline, "", "");
}
/* beware of flushing buffers after a SIGPIPE */
_exit(status);
* after first call, for use with ftp (which may chroot
* after login, but before logout).
*/
-logwtmp(line, name, host)
+void ftp_logwtmp(line, name, host)
char *line, *name, *host;
{
struct utmp ut;