diff --git a/Makefile b/Makefile index c52759dd34ae649621c18da06482ab79cc65a1b6..86d8af58a9f9d87f794182ef397122001a22093d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 8 -EXTRAVERSION = +EXTRAVERSION = .1 NAME=Zonked Quokka # *DOCUMENTATION* diff --git a/fs/nfs/file.c b/fs/nfs/file.c index ee2addb5c4493bcb11250f8a817cfd361ca843be..6d9150de803aa36dff2a8f9945ea6e3b10c58d81 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c @@ -72,7 +72,7 @@ struct inode_operations nfs_file_inode_operations = { static int nfs_check_flags(int flags) { - if (flags & (O_APPEND | O_DIRECT)) + if ((flags & (O_APPEND | O_DIRECT)) == (O_APPEND | O_DIRECT)) return -EINVAL; return 0; @@ -89,7 +89,7 @@ nfs_file_open(struct inode *inode, struct file *filp) int res; res = nfs_check_flags(filp->f_flags); - if (!res) + if (res) return res; lock_kernel();