From nobody Fri Sep 22 15:26:14 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RsbhQ5BYHz4v22r; Fri, 22 Sep 2023 15:26:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RsbhQ4d2Pz4DT4; Fri, 22 Sep 2023 15:26:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695396374; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uoXKPuMJGB0XL2AwLSgo700HahSgeeXvLwQT+hyFBJ0=; b=GTBIKmI7TmTcIl/cpu0S+wsFozyzIb4Ck6oTN8lcW1lAK1MdoAZoAvJamekB3OhfRkVFWa u1mF2e40KWE+V1i3Of2jNlPwNQx+fhZEIkpybKVtRVstX6mgDMKatowNcE3UTSZFo2aiBu uHdefRaRkdyZzj7sSfpU5HWd6G9VpxvuvJIRprp3n7z0Aw0EEv9jJRi5ckKczzacl1oHyU PD0n/Kw9Zajl02hn3wLxd2tciTN3RQ/HujXfyBHAWvQTF6qqcxzXwSWqWICMjuyAzGx6Gy UHQ+tQX7Zeh2/IsZeXMhSgONilvN9fAoI7kkskVihZGHUzMSWaDjJgC45WZSvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695396374; a=rsa-sha256; cv=none; b=PJj3DANyDDHflF7YaG2ve2jFkri4a/8frtWsoekKYArd9q5vSkDnOYoKUpeKFiPfPeVV+4 nvrhV1c8v/SiUW7pB3ko9sg9H2I8T35+27CACfChQDQRJTt2KK1syuJA7W96mHHnvNVliH ISYYerUhef2Pk2VZE2jjyRzVjMcNGrVUAwy6Au5BKRunlfpY5aMCtVe8IKzW1wNIx5S5oe 6V3NwtQL0EvHEKZONxI+aKGvF7/3HDT/oRtEAX+0Ro2v82JZ/EO6MunX36tqdYYS8iN61k VCKVy399+iT54L3NltUo2pJMSi/vJ1mpw1LOckl1lZiox03WVSDWNX6EAxb2wg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695396374; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uoXKPuMJGB0XL2AwLSgo700HahSgeeXvLwQT+hyFBJ0=; b=fpFsJZcTS2ipgdr1RRhx9HxG6GSOfI9q/DnMs0OMX/ltQF1N6NYpc8kO9mYhtRQ/usK17s ggQgscyBn1ceA8w5Zl6HEYS0s1vrim9pfIxq3WqaqQgmuUs1NH1d5S54DKluxJefcikY0i c+N5CIoc97oWq26WJBGd6lKwSMxy7gwz0qkoipbf/dxj09JadU9i16yoKkNZWxdq6xHfdX btLu0aC3CLTIsDvuPYk6y2g4Otk7jS8QW2pr8oT60+qx/xSLjuK3NiitJoLhdIl9S7koMl oSbj5VaDBhzLwW5FKvQ3/34a3e8qDLzBbK9DNVM+7N/PTk9wIB3loAvo0N8iHQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RsbhQ3ThLzCJG; Fri, 22 Sep 2023 15:26:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38MFQETt097504; Fri, 22 Sep 2023 15:26:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38MFQEZY097501; Fri, 22 Sep 2023 15:26:14 GMT (envelope-from git) Date: Fri, 22 Sep 2023 15:26:14 GMT Message-Id: <202309221526.38MFQEZY097501@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 6f4ce7e89ba4 - main - lastcomm: improve timestamp display List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6f4ce7e89ba4fa52566704533920352aa65c7f9b Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=6f4ce7e89ba4fa52566704533920352aa65c7f9b commit 6f4ce7e89ba4fa52566704533920352aa65c7f9b Author: Michael Paepcke AuthorDate: 2023-07-27 08:28:50 +0000 Commit: Ed Maste CommitDate: 2023-09-22 14:59:45 +0000 lastcomm: improve timestamp display Adjust the lastcomm command to output timestamps with a precision of seconds. Reported by: Dr. Andreas Longwitz Reviewed by: emaste Relnotes: Yes Sponsored by: DSS Gmbh Pull Request: https://github.com/freebsd/freebsd-src/pull/802 --- usr.bin/lastcomm/lastcomm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/lastcomm/lastcomm.c b/usr.bin/lastcomm/lastcomm.c index bcd84b2ed37a..b97755e7bb03 100644 --- a/usr.bin/lastcomm/lastcomm.c +++ b/usr.bin/lastcomm/lastcomm.c @@ -191,7 +191,7 @@ main(int argc, char *argv[]) localtime(&ab.ac_btime)); (void)printf(" %s", buf); } else - (void)printf(" %.16s", ctime(&ab.ac_btime)); + (void)printf(" %.19s", ctime(&ab.ac_btime)); } /* exit time (starting time + elapsed time )*/ @@ -203,7 +203,7 @@ main(int argc, char *argv[]) localtime(&t)); (void)printf(" %s", buf); } else - (void)printf(" %.16s", ctime(&t)); + (void)printf(" %.19s", ctime(&t)); } printf("\n"); }