aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-24 23:21:59 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-03 22:55:11 -0500
commit8d334acdd2c1f57c7a574c6f24d08e4c95582ff0 (patch)
tree195e9c55d2310fa81e7bd325a95481b33b9a2d4a /include/linux/fs.h
parent62bb109170375f82eb3c51c8080b72954f02dca7 (diff)
switch is_sxid() to umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 9db9f6e6c98b..9d02fab420c6 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2690,7 +2690,7 @@ int __init get_filesystem_list(char *buf);
2690#define OPEN_FMODE(flag) ((__force fmode_t)(((flag + 1) & O_ACCMODE) | \ 2690#define OPEN_FMODE(flag) ((__force fmode_t)(((flag + 1) & O_ACCMODE) | \
2691 (flag & __FMODE_NONOTIFY))) 2691 (flag & __FMODE_NONOTIFY)))
2692 2692
2693static inline int is_sxid(mode_t mode) 2693static inline int is_sxid(umode_t mode)
2694{ 2694{
2695 return (mode & S_ISUID) || ((mode & S_ISGID) && (mode & S_IXGRP)); 2695 return (mode & S_ISUID) || ((mode & S_ISGID) && (mode & S_IXGRP));
2696} 2696}