Hi, On Tue, 9 Jan 2007, Andy Whitcroft wrote: > Stefan-W. Hahn wrote: > > > + if (current_offset != lseek(fd, current_offset, SEEK_SET)) > > + return -1; > > How likely are we ever to be in the right place here? You mean something like if (current_offset != offset + count && current_offset != lseek(fd, current_offset, SEEK_SET)) return -1; instead? Seems cheap enough. Ciao, Dscho - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html