Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15284
b: refs/heads/master
c: 0800c5f
h: refs/heads/master
v: v3
  • Loading branch information
ASANO Masahiro authored and Linus Torvalds committed Dec 22, 2005
1 parent c5428f2 commit 0ad178b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d6f029130fb83b36fb709a187275b0494035d689
refs/heads/master: 0800c5f7a499a8961c3868e95cc4cf1715166457
3 changes: 2 additions & 1 deletion trunk/fs/nfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,8 @@ static int nfs_lock(struct file *filp, int cmd, struct file_lock *fl)
return -EINVAL;

/* No mandatory locks over NFS */
if ((inode->i_mode & (S_ISGID | S_IXGRP)) == S_ISGID)
if ((inode->i_mode & (S_ISGID | S_IXGRP)) == S_ISGID &&
fl->fl_type != F_UNLCK)
return -ENOLCK;

if (IS_GETLK(cmd))
Expand Down

0 comments on commit 0ad178b

Please sign in to comment.