diff options
| author | Chuck Silvers <chs@FreeBSD.org> | 2021-02-02 00:21:14 +0000 |
|---|---|---|
| committer | Chuck Silvers <chs@FreeBSD.org> | 2021-02-02 00:21:14 +0000 |
| commit | 7787e7eed9d2a43fb6eb66666040f1b495995a2f (patch) | |
| tree | adde0569f91b3494cbfb6a1cdbd59a1f09470993 /usr.bin/tail | |
| parent | 1912d2b15e6d6f4a1d8c3886b03ab30d2f21f3fd (diff) | |
Diffstat (limited to 'usr.bin/tail')
| -rw-r--r-- | usr.bin/tail/forward.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c index 2888bd18816e..878cb5a4550b 100644 --- a/usr.bin/tail/forward.c +++ b/usr.bin/tail/forward.c @@ -367,7 +367,7 @@ follow(file_info_t *files, enum STYLE style, off_t off) continue; ftmp = fileargs_fopen(fa, file->file_name, "r"); if (ftmp == NULL || - fstat(fileno(file->fp), &sb2) == -1) { + fstat(fileno(ftmp), &sb2) == -1) { if (errno != ENOENT) ierr(file->file_name); show(file); |
