From owner-cvs-all Tue Mar 27 15:24:29 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4ECD037B719; Tue, 27 Mar 2001 15:24:26 -0800 (PST) (envelope-from ache@FreeBSD.org) Received: (from ache@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2RNOQc56458; Tue, 27 Mar 2001 15:24:26 -0800 (PST) (envelope-from ache) Message-Id: <200103272324.f2RNOQc56458@freefall.freebsd.org> From: "Andrey A. Chernov" Date: Tue, 27 Mar 2001 15:24:26 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/tail forward.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ache 2001/03/27 15:24:26 PST Modified files: usr.bin/tail forward.c Log: Restore part of my fix spammed in v1.23: fseeko(file_size, SEEK_SET) -> fseek(0L, SEEK_END) 1) File may grows between operations, so fseeko to file_size may miss 2) 0L, SEEK_END is the same code using in tail in all other places Revision Changes Path 1.24 +2 -2 src/usr.bin/tail/forward.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message