summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-25 17:32:17 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-03 22:54:52 -0500
commit8208a22bb8bd3c52ef634b4ff194f14892ab1713 (patch)
tree1ebcac8fb2b747b1da894df8cfbb42bd0f742b06 /fs
parentdabe0dc194d5d56d379a8994fff47392744b6491 (diff)
downloadlinux-8208a22bb8bd3c52ef634b4ff194f14892ab1713.tar.gz
linux-8208a22bb8bd3c52ef634b4ff194f14892ab1713.tar.bz2
linux-8208a22bb8bd3c52ef634b4ff194f14892ab1713.zip
switch sys_mknodat(2) to umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/namei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 5008f01787f5..f6b3c73e862c 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2489,7 +2489,7 @@ static int may_mknod(mode_t mode)
}
}
-SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, int, mode,
+SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, umode_t, mode,
unsigned, dev)
{
struct dentry *dentry;
@@ -2536,7 +2536,7 @@ out_dput:
return error;
}
-SYSCALL_DEFINE3(mknod, const char __user *, filename, int, mode, unsigned, dev)
+SYSCALL_DEFINE3(mknod, const char __user *, filename, umode_t, mode, unsigned, dev)
{
return sys_mknodat(AT_FDCWD, filename, mode, dev);
}