Date: Tue, 9 Feb 2010 07:35:13 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r203698 - head/libexec/ftpd Message-ID: <201002090735.o197ZDGb097170@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002090735.o197ZDGb097170>