diff options
author | ed <ed@FreeBSD.org> | 2010-02-09 07:35:12 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-02-09 07:35:12 +0000 |
commit | bf52ec5e71e6853a6fcdd88a46ba924cda067510 (patch) | |
tree | cf5b22e33e0fce5c9eae1bb728e45de9ac83f0aa | |
parent | 91212ae23c60e92beb6a2bf31304fe0f44d84cee (diff) | |
download | FreeBSD-src-bf52ec5e71e6853a6fcdd88a46ba924cda067510.zip FreeBSD-src-bf52ec5e71e6853a6fcdd88a46ba924cda067510.tar.gz |
Set ut_line to "ftpd" for ftpd.
This makes it a little easier to figure out which application was
responsible for this log entry. Ideally we should add an ut_process or
something similar.
Suggested by: Vincent Poy <vincepoy gmail com>
-rw-r--r-- | libexec/ftpd/logwtmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/ftpd/logwtmp.c b/libexec/ftpd/logwtmp.c index 82683f5..711234f 100644 --- a/libexec/ftpd/logwtmp.c +++ b/libexec/ftpd/logwtmp.c @@ -75,6 +75,7 @@ ftpd_logwtmp(char *id, char *user, struct sockaddr *addr) ut.ut_pid = getpid(); gettimeofday(&ut.ut_tv, NULL); (void)strncpy(ut.ut_id, id, sizeof(ut.ut_id)); + (void)strncpy(ut.ut_line, "ftpd", sizeof(ut.ut_line)); pututxline(&ut); } |