misc/50825: lseek to negative file positions screws up flags
Dirk Engling
erdgeist at erdgeist.org
Sat Apr 12 06:00:31 PDT 2003
The following reply was made to PR misc/50825; it has been noted by GNATS.
From: Dirk Engling <erdgeist at erdgeist.org>
To: David Taylor <davidt at yadt.co.uk>
Cc: <FreeBSD-gnats-submit at FreeBSD.org>
Subject: Re: misc/50825: lseek to negative file positions screws up flags
Date: Sat, 12 Apr 2003 14:53:03 +0200 (CEST)
On Sat, 12 Apr 2003, David Taylor wrote:
> Replacing the above line with:
>
> int a = open( "testfile", O_CREAT | O_RDWR, 0666 );
>
> results in the program working as it should.
How embarassing, thank you. I migrated from fopen() and
did not notice the additional parameter.
Regards
Dirk
More information about the freebsd-bugs
mailing list