Subject: Re: did lseek recently change?
To: None <email@example.com>
From: Mike Long <firstname.lastname@example.org>
Date: 05/17/1997 00:07:58
>Date: Fri, 16 May 1997 22:58:35 -0400 (EDT)
>From: "John F. Woods" <email@example.com>
>Did lseek recently (between 1.2 and maybe a month ago) change to
>reject attemps to seek to negative addresses? The lastcomm command
>started printing "Invalid argument" when it was done when I upgraded
>from 1.2 to current; at first I thought it was a binary/kernel
>mismatch, but it persists even after everything is freshly built. I
>have identified the problem; a poorly-thought-out loop tries to seek
>to one "struct acct" before the beginning of the file before
>processing the first (earliest) record, and I've sent a PR with a
>suggested fix. But lastcomm hasn't changed since December 1995, so
>I'm curious as to why this suddenly started failing.
If I recall correctly, making lseek() return an error was one of Klaus
Klein's POSIX-related fixes.
Mike Long <firstname.lastname@example.org> http://www.shore.net/~mikel
"Every normal man must be tempted at times to spit on his hands,
hoist the black flag, and begin slitting throats." -- H.L. Mencken