diff options
author | Thomas Gellekum <tg@FreeBSD.org> | 1997-09-05 11:44:00 +0000 |
---|---|---|
committer | Thomas Gellekum <tg@FreeBSD.org> | 1997-09-05 11:44:00 +0000 |
commit | 986a117274b5e70c333391840516c1329bd621fb (patch) | |
tree | 9221cdeeab40ef4edfbc4504cab1c4c44d983344 /libexec | |
parent | b11f88b09a7629a74e60d910739b27d1cf9b4c3d (diff) | |
download | src-986a117274b5e70c333391840516c1329bd621fb.tar.gz src-986a117274b5e70c333391840516c1329bd621fb.zip |
Hopefully better fix for logwtmp(): rename to a private
version ftpd_logwtmp().
Notes
Notes:
svn path=/head/; revision=29140
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ftpd/extern.h | 3 | ||||
-rw-r--r-- | libexec/ftpd/ftpd.c | 8 | ||||
-rw-r--r-- | libexec/ftpd/logwtmp.c | 4 |
3 files changed, 8 insertions, 7 deletions
diff --git a/libexec/ftpd/extern.h b/libexec/ftpd/extern.h index 035b320dee01..f4da9031fd7e 100644 --- a/libexec/ftpd/extern.h +++ b/libexec/ftpd/extern.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)extern.h 8.2 (Berkeley) 4/4/94 - * $Id: extern.h,v 1.9 1997/04/26 12:12:10 davidn Exp $ + * $Id: extern.h,v 1.10 1997/09/05 11:17:22 tg Exp $ */ void blkfree __P((char **)); @@ -40,6 +40,7 @@ void cwd __P((char *)); void delete __P((char *)); void dologout __P((int)); void fatal __P((char *)); +void ftpd_logwtmp __P((char *, char *, char *)); int ftpd_pclose __P((FILE *)); FILE *ftpd_popen __P((char *, char *)); char *getline __P((char *, int, FILE *)); diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 37407a3e4f0d..d96154664680 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ftpd.c,v 1.40 1997/05/21 23:24:41 danny Exp $ + * $Id: ftpd.c,v 1.41 1997/07/24 09:26:12 davidn Exp $ */ #if 0 @@ -889,7 +889,7 @@ end_login() (void) seteuid((uid_t)0); if (logged_in) - logwtmp(ttyline, "", ""); + ftpd_logwtmp(ttyline, "", ""); pw = NULL; #ifdef LOGIN_CAP setusercontext(NULL, getpwuid(0), (uid_t)0, @@ -994,7 +994,7 @@ skip: #endif /* open wtmp before chroot */ - logwtmp(ttyline, pw->pw_name, remotehost); + ftpd_logwtmp(ttyline, pw->pw_name, remotehost); logged_in = 1; if (guest && stats && statfd < 0) @@ -1932,7 +1932,7 @@ dologout(status) if (logged_in) { (void) seteuid((uid_t)0); - logwtmp(ttyline, "", ""); + ftpd_logwtmp(ttyline, "", ""); #if defined(KERBEROS) if (!notickets && krbtkfile_env) unlink(krbtkfile_env); diff --git a/libexec/ftpd/logwtmp.c b/libexec/ftpd/logwtmp.c index 9562795fa8c3..25deb506f5c7 100644 --- a/libexec/ftpd/logwtmp.c +++ b/libexec/ftpd/logwtmp.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: logwtmp.c,v 1.5 1997/02/22 14:21:29 peter Exp $ */ #ifndef lint @@ -59,7 +59,7 @@ static int fd = -1; * after login, but before logout). */ void -logwtmp(line, name, host) +ftpd_logwtmp(line, name, host) char *line, *name, *host; { struct utmp ut; |