misc/50825: lseek to negative file positions screws up flags

Garrett Wollman wollman at lcs.mit.edu
Fri Apr 11 15:40:09 PDT 2003


The following reply was made to PR misc/50825; it has been noted by GNATS.

From: Garrett Wollman <wollman at lcs.mit.edu>
To: Erdgeist <erdgeist at erdgeist.org>
Cc: FreeBSD-gnats-submit at freebsd.org
Subject: misc/50825: lseek to negative file positions screws up flags
Date: Fri, 11 Apr 2003 18:34:54 -0400 (EDT)

 <<On Fri, 11 Apr 2003 01:37:41 +0200 (CEST), Erdgeist <erdgeist at erdgeist.org> said:
 
 >         Doing a lseek to a position before the file results in corrupted
 >         File flags.
 
 I am not able to reproduce your problem:
 
   wollman at khavrinen(1485)$ cc -O -Wall foo.c
 wollman at khavrinen(1486)$ ./a.out
 wollman at 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
 


More information about the freebsd-bugs mailing list