mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
tail: Initialize the stat buffer used when input is stdin
PR: 266284
Reported by: Jenkins via delphij
Fixes: 7e11889959 ("tail: Fix -f with stdin")
MFC after: 3 days
This commit is contained in:
parent
dda6376b04
commit
e599810ded
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue