When doing tail -F, return if the freopen() of the file fails instead of
trying to use a null file pointer.
This commit is contained in:
parent
616fa7460c
commit
f33ae51c77
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107901
@ -258,6 +258,7 @@ forward(fp, style, off, sbp)
|
||||
fp = freopen(fname, "r", fp);
|
||||
if (fp == NULL) {
|
||||
ierr();
|
||||
return;
|
||||
} else {
|
||||
*sbp = sb2;
|
||||
action = ADD_EVENTS;
|
||||
|
Loading…
Reference in New Issue
Block a user