From e599810ded07590708437cf58b8dd05f7cb474e5 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Thu, 8 Sep 2022 16:21:39 -0400 Subject: [PATCH] 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 51598d451be..9d81a14cc7d 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);