From owner-svn-src-all@FreeBSD.ORG Tue Feb 9 07:35:13 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38614106568D; Tue, 9 Feb 2010 07:35:13 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2873B8FC18; Tue, 9 Feb 2010 07:35:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o197ZDvM097172; Tue, 9 Feb 2010 07:35:13 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o197ZDGb097170; Tue, 9 Feb 2010 07:35:13 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201002090735.o197ZDGb097170@svn.freebsd.org> From: Ed Schouten Date: Tue, 9 Feb 2010 07:35:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r203698 - head/libexec/ftpd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2010 07:35:13 -0000 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 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); }