mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue