patch-2.0.36 linux/mm/mmap.c
Next file: linux/mm/swapfile.c
Previous file: linux/kernel/sys.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Sun Nov 15 10:33:20 1998
- Orig file:
v2.0.35/linux/mm/mmap.c
- Orig date:
Mon Jul 13 13:46:42 1998
diff -u --recursive --new-file v2.0.35/linux/mm/mmap.c linux/mm/mmap.c
@@ -179,7 +179,7 @@
if (locks_verify_locked(file->f_inode))
return -EAGAIN;
/* cevans -- whoops another append-only file flaw */
- if (IS_APPEND(file->f_inode) && (prot & PROT_WRITE))
+ if (IS_APPEND(file->f_inode) && (file->f_mode & 2))
return -EACCES;
/* fall through */
case MAP_PRIVATE:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov