54d34ff63d
If tail notices that a file it is following no longer exists (because stat() fails), it will output any final lines and then close the file. If the read operation also causes an error, such as when the filesystem is forcefully unmounted, it closes the file as well, leading to fclose(NULL) and a segmentation fault. PR: bin/159750 Submitted by: swills Approved by: re (kib) MFC after: 1 week |
||
---|---|---|
.. | ||
extern.h | ||
forward.c | ||
Makefile | ||
misc.c | ||
read.c | ||
reverse.c | ||
tail.1 | ||
tail.c |