X-Git-Url: http://bbs.cooldavid.org/git/?a=blobdiff_plain;f=fs%2Fnfs%2Fdir.c;h=e257172d438c08afe374c99fe0e7c80af51efe6c;hb=0a377cff9428af2da2b293d11e07bc4dbf064ee5;hp=bd91b2778315501cefe36bfbbf2cbb097eafa836;hpb=df486a25900f4dba9cdc3886c4ac871951c6aef3;p=net-next-2.6.git diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index bd91b277831..e257172d438 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -1110,7 +1110,7 @@ static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd) if ((openflags & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL)) goto no_open_dput; /* We can't create new files, or truncate existing ones here */ - openflags &= ~(O_CREAT|O_TRUNC); + openflags &= ~(O_CREAT|O_EXCL|O_TRUNC); /* * Note: we're not holding inode->i_mutex and so may be racing with