Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280264
b: refs/heads/master
c: 8d334ac
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent 91a241b commit c38c0cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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: 62bb109170375f82eb3c51c8080b72954f02dca7
refs/heads/master: 8d334acdd2c1f57c7a574c6f24d08e4c95582ff0
4 changes: 2 additions & 2 deletions trunk/fs/attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ EXPORT_SYMBOL(setattr_copy);
int notify_change(struct dentry * dentry, struct iattr * attr)
{
struct inode *inode = dentry->d_inode;
mode_t mode = inode->i_mode;
umode_t mode = inode->i_mode;
int error;
struct timespec now;
unsigned int ia_valid = attr->ia_valid;
Expand All @@ -177,7 +177,7 @@ int notify_change(struct dentry * dentry, struct iattr * attr)
}

if ((ia_valid & ATTR_MODE)) {
mode_t amode = attr->ia_mode;
umode_t amode = attr->ia_mode;
/* Flag setting protected by i_mutex */
if (is_sxid(amode))
inode->i_flags &= ~S_NOSEC;
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -2690,7 +2690,7 @@ int __init get_filesystem_list(char *buf);
#define OPEN_FMODE(flag) ((__force fmode_t)(((flag + 1) & O_ACCMODE) | \
(flag & __FMODE_NONOTIFY)))

static inline int is_sxid(mode_t mode)
static inline int is_sxid(umode_t mode)
{
return (mode & S_ISUID) || ((mode & S_ISGID) && (mode & S_IXGRP));
}
Expand Down

0 comments on commit c38c0cf

Please sign in to comment.