HomeFreeBSD

tail: fix "tail -F" file rotation detection

Description

tail: fix "tail -F" file rotation detection

When checking if the newly opened file is the same as the old one,
we need to fstat() the new file descriptor, not the old one again.

Reviewed by: glebius
Sponsored by: Netflix

(cherry picked from commit 7787e7eed9d2a43fb6eb66666040f1b495995a2f)

Details

Provenance
chsAuthored on Feb 2 2021, 12:21 AM
Parents
rG120a4bd4e9d0: netmap: fix memory leak in NETMAP_REQ_PORT_INFO_GET
Branches
Unknown
Tags
Unknown