From owner-freebsd-bugs@FreeBSD.ORG Sat Apr 12 06:00:31 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F8EA37B401 for ; Sat, 12 Apr 2003 06:00:31 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96ADD43F85 for ; Sat, 12 Apr 2003 06:00:30 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h3CD0UUp050175 for ; Sat, 12 Apr 2003 06:00:30 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h3CD0UHq050174; Sat, 12 Apr 2003 06:00:30 -0700 (PDT) Date: Sat, 12 Apr 2003 06:00:30 -0700 (PDT) Message-Id: <200304121300.h3CD0UHq050174@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Dirk Engling Subject: Re: misc/50825: lseek to negative file positions screws up flags X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dirk Engling List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2003 13:00:31 -0000 The following reply was made to PR misc/50825; it has been noted by GNATS. From: Dirk Engling To: David Taylor Cc: 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