summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/refcounttree.c
diff options
context:
space:
mode:
authorAl Viro2012-07-19 23:17:26 +0200
committerAl Viro2012-07-29 19:24:14 +0200
commit8e4bfca1d1f0de62301dd223675717e7a5f63a27 (patch)
tree0489363abd435b844ffcfb7097b55b616fa908b7 /fs/ocfs2/refcounttree.c
parentnew helper: done_path_create() (diff)
downloadkernel-qcow2-linux-8e4bfca1d1f0de62301dd223675717e7a5f63a27.tar.gz
kernel-qcow2-linux-8e4bfca1d1f0de62301dd223675717e7a5f63a27.tar.xz
kernel-qcow2-linux-8e4bfca1d1f0de62301dd223675717e7a5f63a27.zip
mknod: take sanity checks on mode into the very beginning
Note that applying umask can't affect their results. While that affects errno in cases like mknod("/no_such_directory/a", 030000) yielding -EINVAL (due to impossible mode_t) instead of -ENOENT (due to inexistent directory), IMO that makes a lot more sense, POSIX allows to return either and any software that relies on getting -ENOENT instead of -EINVAL in that case deserves everything it gets. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ocfs2/refcounttree.c')
0 files changed, 0 insertions, 0 deletions