From 2e833bedc1ddb766b4b4fc18868b620102aef31e Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Sun, 21 Dec 1997 23:30:56 +0000 Subject: [PATCH] * 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10341 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/gssftp/ftpd/ChangeLog | 9 +++++++++ src/appl/gssftp/ftpd/ftpd.c | 6 +++--- src/appl/gssftp/ftpd/logwtmp.c | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/appl/gssftp/ftpd/ChangeLog b/src/appl/gssftp/ftpd/ChangeLog index 6725f1e1a..2ea1c752a 100644 --- a/src/appl/gssftp/ftpd/ChangeLog +++ b/src/appl/gssftp/ftpd/ChangeLog @@ -1,3 +1,12 @@ +Sun Dec 21 18:17:53 1997 Tom Yu + + * 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 * ftpd.c: Don't include netdb.h or sys/socket.h if krb.h is diff --git a/src/appl/gssftp/ftpd/ftpd.c b/src/appl/gssftp/ftpd/ftpd.c index 318d2da4f..b0d1933ed 100644 --- a/src/appl/gssftp/ftpd/ftpd.c +++ b/src/appl/gssftp/ftpd/ftpd.c @@ -700,7 +700,7 @@ end_login() (void) seteuid((uid_t)0); if (logged_in) - logwtmp(ttyline, "", ""); + ftp_logwtmp(ttyline, "", ""); pw = NULL; logged_in = 0; guest = 0; @@ -814,7 +814,7 @@ pass(passwd) /* 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) { @@ -1684,7 +1684,7 @@ dologout(status) { if (logged_in) { (void) seteuid((uid_t)0); - logwtmp(ttyline, "", ""); + ftp_logwtmp(ttyline, "", ""); } /* beware of flushing buffers after a SIGPIPE */ _exit(status); diff --git a/src/appl/gssftp/ftpd/logwtmp.c b/src/appl/gssftp/ftpd/logwtmp.c index 36f7e1309..846819a8f 100644 --- a/src/appl/gssftp/ftpd/logwtmp.c +++ b/src/appl/gssftp/ftpd/logwtmp.c @@ -59,7 +59,7 @@ static int fd = -1; * 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; -- 2.26.2