From nobody Sun Jan 07 01:27:33 2024 X-Original-To: dev-commits-src-branches@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 4T701K3MNWz564hH; Sun, 7 Jan 2024 01:27:33 +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 4T701K1tj0z4gLq; Sun, 7 Jan 2024 01:27:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704590853; 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=ZzC13alyBeRj7ktIqW/1cmwwA+5aWUpXOUuQMlYDSfc=; b=yXohEzduOVI9bCiX2ie4V3nAiKvF/IvbiqqMtRjk4qUZfTZkiSb1aUlQXoAa86U7sDGU5p v1cdLUydKiwdykLdf6EMxG2deXAFkQzyYwJiVH1A+dZWNbg0GXhQVHB73RHPsVW8mt8160 mvkMhYh49rD8PN0OI37CDEzfGdCjUkNuAtEW3QFhQDQ2jjHZybnXl0hIPz2Q66PAl4RKQv yQhy7tzDiMX3O/N443ngqF44vhdKRQMFREGXtGOfgcUk46SW1EN0/21NEXcApDnLDIGV12 j31n7eDntlV52Jkph36380vFUQG6Xkqn5sTejKtn00bHZd4wPmezOPTSwGOMQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704590853; 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=ZzC13alyBeRj7ktIqW/1cmwwA+5aWUpXOUuQMlYDSfc=; b=CJph5Lu7e8Sh757HS6HEnKpSoE3ctdwixy4G7tFsyykhdkMaV/id8G/7NcfTZigXmAMZjD 20aBVEsvH/sQBuVNjMivUAmMmICkUGZEG+q/IJegfFj8Gl5VMMKlK+h9gbihnalWW5+SLW UGJOibXRRsgnDSy3QFKv1am7CMeqNwQykT5+tfYqnqAwBkjMjo4Wh9qKO09Tlz35Q0NKgh Atf9y1fIrD9mk2DG6F/KtJT9ETd6Vl0YhU819y8preMWac7C4E/EZk4VyyygwZaWwm8h34 fearrLzOLLCpYRDiyYC2bsHyO7petA3wiv2mGy/RC8pE8KQgvs65FQ8TrFhP7w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704590853; a=rsa-sha256; cv=none; b=erVxEBb6SzOKixFL1bt+ioWnqC31fvdrbMbGCsHwhSYIkwO0mqoBBF/jH8IKwFlH8nxMXj V4/F76gtggQFVYQSXc0dKugwWK92Gn6Jf79RL3hj9VJ3Mt1pbaRE4UBP6jmj148eygK+EF S6fMVeVr65GghcpJ6DtcWPk95oOLjwempCRKsBLi8MK79fA0pQgEdQotjVvE678c/kH160 OM6QoA7gz2e31c9uuZFaZ/TTcGAbyMv0S3HLKsmyWEXmea8zQPHQRdUIW5UZnxGNO4m9nn ZXSNC4ja/hY0fBwZP6DUmEE6333xKVtLowKzxY2ie/HjpPJHwHR8ILc23jWMlA== 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 4T701K0zJgz14h7; Sun, 7 Jan 2024 01:27:33 +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 4071RX06068892; Sun, 7 Jan 2024 01:27:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4071RXAW068889; Sun, 7 Jan 2024 01:27:33 GMT (envelope-from git) Date: Sun, 7 Jan 2024 01:27:33 GMT Message-Id: <202401070127.4071RXAW068889@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 692c0a2e80c1 - stable/14 - lastcomm: improve timestamp display List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 692c0a2e80c1df7e401c803bebe165923044e223 Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=692c0a2e80c1df7e401c803bebe165923044e223 commit 692c0a2e80c1df7e401c803bebe165923044e223 Author: Michael Paepcke AuthorDate: 2023-07-27 08:28:50 +0000 Commit: Ed Maste CommitDate: 2024-01-07 01:27:18 +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 (cherry picked from commit 6f4ce7e89ba4fa52566704533920352aa65c7f9b) --- 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"); }