commit | 8d334acdd2c1f57c7a574c6f24d08e4c95582ff0 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sun Jul 24 23:21:59 2011 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Tue Jan 03 22:55:11 2012 -0500 |
tree | 195e9c55d2310fa81e7bd325a95481b33b9a2d4a | |
parent | 62bb109170375f82eb3c51c8080b72954f02dca7 [diff] [blame] |
switch is_sxid() to umode_t Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/include/linux/fs.h b/include/linux/fs.h index 9db9f6e..9d02fab 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h
@@ -2690,7 +2690,7 @@ #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)); }