Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Apr 2003 06:00:30 -0700 (PDT)
From:      Dirk Engling <erdgeist@erdgeist.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/50825: lseek to negative file positions screws up flags
Message-ID:  <200304121300.h3CD0UHq050174@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/50825; it has been noted by GNATS.

From: Dirk Engling <erdgeist@erdgeist.org>
To: David Taylor <davidt@yadt.co.uk>
Cc: <FreeBSD-gnats-submit@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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304121300.h3CD0UHq050174>