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
@ -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