Date: Fri, 11 Apr 2003 15:40:07 -0700 (PDT) From: Garrett Wollman <wollman@lcs.mit.edu> To: freebsd-bugs@FreeBSD.org Subject: misc/50825: lseek to negative file positions screws up flags Message-ID: <200304112240.h3BMe7PX051602@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: Garrett Wollman <wollman@lcs.mit.edu> To: Erdgeist <erdgeist@erdgeist.org> 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) <<On Fri, 11 Apr 2003 01:37:41 +0200 (CEST), Erdgeist <erdgeist@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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304112240.h3BMe7PX051602>