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:
Tim J. Robbins 2002-12-15 11:26:57 +00:00
parent 616fa7460c
commit f33ae51c77
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107901

View File

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