summaryrefslogtreecommitdiff
path: root/ftp/wu-ftpd/files/logwtmp.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2011-05-02 09:11:34 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2011-05-02 09:11:34 +0000
commit991d09aec4e9b0ba9f12122d49ef31aa6de71e7b (patch)
tree289e5f7c28d6cfd0a4a81901b06639dd791602a3 /ftp/wu-ftpd/files/logwtmp.c
parentRemove unmaintained expired ports from graphics (diff)
Remove unmaintained expired ports from ftp
2011-05-01 ftp/axyftp: Upstream disapear and distfile is no more available 2011-05-01 ftp/emacs-wget: Upstream disapear and distfile is no more available 2011-05-01 ftp/llnlxdir: Upstream disapear and distfile is no more available 2011-05-01 ftp/llnlxftp: Upstream disapear and distfile is no more available 2011-05-01 ftp/mirror: Upstream disapear and distfile is no more available 2011-05-01 ftp/moftpd: Upstream disapear and distfile is no more available 2011-05-01 ftp/wu-ftpd: Upstream disapear and distfile is no more available 2011-05-01 ftp/xrmftp: Upstream disapear and distfile is no more available 2011-05-01 ftp/yale-tftpd: Upstream disapear and distfile is no more available
Notes
Notes: svn path=/head/; revision=273464
Diffstat (limited to 'ftp/wu-ftpd/files/logwtmp.c')
-rw-r--r--ftp/wu-ftpd/files/logwtmp.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/ftp/wu-ftpd/files/logwtmp.c b/ftp/wu-ftpd/files/logwtmp.c
deleted file mode 100644
index 81fcf8fc6d30..000000000000
--- a/ftp/wu-ftpd/files/logwtmp.c
+++ /dev/null
@@ -1,24 +0,0 @@
-#include "config.h"
-#include "proto.h"
-
-#include <utmpx.h>
-
-void
-wu_logwtmp(char *line, char *name, char *host, int login)
-{
- struct utmpx utx;
-
- memset(&utx, 0, sizeof(utx));
- utx.ut_pid = getpid();
- snprintf(utx.ut_id, sizeof utx.ut_id, "%xftp", utx.ut_pid);
- gettimeofday(&utx.ut_tv, NULL);
- if (login) {
- utx.ut_type = USER_PROCESS;
- strncpy(utx.ut_user, name, sizeof(utx.ut_user));
- strncpy(utx.ut_host, host, sizeof(utx.ut_host));
- strncpy(utx.ut_line, line, sizeof(utx.ut_line));
- } else {
- utx.ut_type = DEAD_PROCESS;
- }
- pututxline(&utx);
-}