[comp.os.minix] Fix for bug in fs/read.c

ast@cs.vu.nl (Andy Tanenbaum) (01/23/88)

The people working on the Atari port found a bug in fs/read.c.  The
test for block special files in done on line 9968 but not on 9963.  It
should be.  Here is the fix:

220c220,221
< 	if(rw_flag == WRITING && off == 0 && position >= rip->i_size) n=NO_READ;
---
> 	if(rw_flag == WRITING && !block_spec && 
> 		off == 0 && position >= rip->i_size) n=NO_READ;

Andy Tanenbaum