From owner-freebsd-bugs@FreeBSD.ORG Fri Apr 11 15:40:08 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 C5BC137B401 for ; Fri, 11 Apr 2003 15:40:08 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70B4B43F93 for ; Fri, 11 Apr 2003 15:40:08 -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 h3BMe8Up051603 for ; Fri, 11 Apr 2003 15:40:08 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h3BMe7PX051602; Fri, 11 Apr 2003 15:40:07 -0700 (PDT) Date: Fri, 11 Apr 2003 15:40:07 -0700 (PDT) Message-Id: <200304112240.h3BMe7PX051602@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Garrett Wollman Subject: 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: Garrett Wollman List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2003 22:40:09 -0000 The following reply was made to PR misc/50825; it has been noted by GNATS. From: Garrett Wollman To: Erdgeist Cc: FreeBSD-gnats-submit@freebsd.org Subject: misc/50825: lseek to negative file positions screws up flags Date: Fri, 11 Apr 2003 18:34:54 -0400 (EDT) < said: > Doing a lseek to a position before the file results in corrupted > File flags. I am not able to reproduce your problem: wollman@khavrinen(1485)$ cc -O -Wall foo.c wollman@khavrinen(1486)$ ./a.out wollman@khavrinen(1487)$ ls -lo testfile -rw-r--r-- 1 wollman users - 0 Apr 11 18:32 testfile I did fix a bug in your program; your call to open() was missing an argument. However, this should have no impact on the file flags, only the mode. -GAWollman