mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-14 20:37:06 +00: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") (cherry picked from commite599810ded
)
This commit is contained in:
parent
15d30ce3fa
commit
d223449d6b
|
@ -263,6 +263,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