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>
This commit is contained in:
Ed Schouten 2010-02-09 07:35:12 +00:00
parent 1d4fd9f5a8
commit cee4a62e54
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=203698

View File

@ -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);
}