summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/appl/gssftp/ftpd/ChangeLog9
-rw-r--r--src/appl/gssftp/ftpd/ftpd.c6
-rw-r--r--src/appl/gssftp/ftpd/logwtmp.c2
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 <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
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;