misc/50825: lseek to negative file positions screws up flags
Erdgeist
erdgeist at erdgeist.org
Fri Apr 11 08:50:18 PDT 2003
>Number: 50825
>Category: misc
>Synopsis: lseek to negative file positions screws up flags
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Apr 11 08:50:16 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Erdgeist
>Release: FreeBSD 5.0-CURRENT i386
>Organization:
erdgeist.org
>Environment:
System: FreeBSD bauklotz.gate5.de 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Thu Apr 10 20:53:26 CEST 2003 root at bauklotz.gate5.de:/usr/obj/usr/src/sys/bauklotz i386
>Description:
Doing a lseek to a position before the file results in corrupted
File flags.
>How-To-Repeat:
#include <unistd.h>
#include <fcntl.h>
int main( ) {
int a = open( "testfile", O_CREAT | O_RDWR );
lseek( a, -10, SEEK_CUR);
close( a );
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list