svn commit: r203698 - head/libexec/ftpd
Ed Schouten
ed at FreeBSD.org
Tue Feb 9 07:35:13 UTC 2010
Author: ed
Date: Tue Feb 9 07:35:12 2010
New Revision: 203698
URL: http://svn.freebsd.org/changeset/base/203698
Log:
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>
Modified:
head/libexec/ftpd/logwtmp.c
Modified: head/libexec/ftpd/logwtmp.c
==============================================================================
--- head/libexec/ftpd/logwtmp.c Tue Feb 9 06:24:43 2010 (r203697)
+++ head/libexec/ftpd/logwtmp.c Tue Feb 9 07:35:12 2010 (r203698)
@@ -75,6 +75,7 @@ ftpd_logwtmp(char *id, char *user, struc
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);
}
More information about the svn-src-all
mailing list