From nobody Thu Sep 08 20:32:36 2022 X-Original-To: dev-commits-src-all@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 4MNrQs032xz4bhPb; Thu, 8 Sep 2022 20:32:37 +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 4MNrQr6jxHz3p8Z; Thu, 8 Sep 2022 20:32:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662669156; 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=utdh0lBZnYCzFVC4fEGe7UqOkxIPWcwGrXJHX9EtoR8=; b=wXpdI+g9UEvDqnI6TUyMmppfLulFwwP3y+uyDD8tfstsm0DtRsL4t7L1e7+1ibhXXP2Ysp KJknTOPgstz3PqQHUa9sPUtWbCUaneHvZeoUb7R7FO5Be5RUu2EU43ptTGE/uWvrq64ezG uG/0oddNbXD/xhS6YxGRw+BaProgeXznkxPPg9w/6X2MIkqRoUKJ4hnEgRN0x4ZIC3h2u0 srQX4c326i0mgMzFSHbz4mu9oz/TGAGk2LZSOukjDHAGlzqtKkYdu0sfs/q0jp/RzWF/Qi wfB4sd0ZH52LxvpewOhrgooV3cxvhWQ0m3lXHVhfZfeDfCw+fPn4cPzNByk3/w== 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 4MNrQr5nN0z10Ss; Thu, 8 Sep 2022 20:32:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 288KWacO097648; Thu, 8 Sep 2022 20:32:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 288KWaOl097647; Thu, 8 Sep 2022 20:32:36 GMT (envelope-from git) Date: Thu, 8 Sep 2022 20:32:36 GMT Message-Id: <202209082032.288KWaOl097647@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: e599810ded07 - main - tail: Initialize the stat buffer used when input is stdin List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e599810ded07590708437cf58b8dd05f7cb474e5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662669156; 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=utdh0lBZnYCzFVC4fEGe7UqOkxIPWcwGrXJHX9EtoR8=; b=eWL7Z+A+SdQwDO+MPcwOnGwBz/Sp0iowzvGnXpD3FHGDDPDU7lYsyc5R7oqUNFBcbOS+oE 5XEaFeV34MAiBut21pr5BcxFTbD4m7OEWjVminW3gP/C5Sd3Fhfgc3Z06270auDHk14IC6 pKYLlkUzxiIa2RZhQpMXLFv52xr7j9+vqWWMGaB2pZU69XEC9zZBpmXGS6c0L0afaawZNf XY1p4bdyRVQ+ga777I4ft8ivJvIzvs2Ms6Du/p2CHH2sORl8YO59BMj3OFT4Ml0uEsejYO URIhTIeghkeW6YGi5sHEXUPXOXQEamCKkMoCfrkokec/5pCghI058fBeyHaiRA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662669156; a=rsa-sha256; cv=none; b=CBivZNn5prJ5lcstpY05tVO/q0glr/4MmxFPRz+5lcEfbXu41f+bsJxWBSGm9k4qHq3hgN xJO2fjWwRisFyvAsoU806G+TNQoa7id2pDjaYiCrlSLhxIw/1QxzcOULG5wWQPSpkZi29a fOtnGWQaGGCjpVcSKWQv8KvTyStHI4zwFn5/BU13KSr8FVr/YEch1I4gIUfAhhlGt37ecJ pR1Ghp6ZuR3C+/Bg7Fyu+VPWE+cB5W+dyMQPm3+X2cLM9yvOTwmtxU+WeJuQaHaFiQZ6dT 0BY1JWU+EGOAlOfy+nHbcvHK/OF8NQSGmZ9JzBMfseSIGdBzPv11H6IAO6QbWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=e599810ded07590708437cf58b8dd05f7cb474e5 commit e599810ded07590708437cf58b8dd05f7cb474e5 Author: Mark Johnston AuthorDate: 2022-09-08 20:21:39 +0000 Commit: Mark Johnston CommitDate: 2022-09-08 20:21:39 +0000 tail: Initialize the stat buffer used when input is stdin PR: 266284 Reported by: Jenkins via delphij Fixes: 7e11889959a6 ("tail: Fix -f with stdin") MFC after: 3 days --- usr.bin/tail/tail.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.bin/tail/tail.c b/usr.bin/tail/tail.c index 51598d451bed..9d81a14cc7d0 100644 --- a/usr.bin/tail/tail.c +++ b/usr.bin/tail/tail.c @@ -273,6 +273,7 @@ main(int argc, char *argv[]) } else if (fflag) { file.file_name = fn; file.fp = stdin; + file.st = sb; follow(&file, style, off); } else { forward(stdin, fn, style, off, &sb);