From: Al Viro Date: Thu, 19 Jul 2012 21:17:26 +0000 (+0400) Subject: mknod: take sanity checks on mode into the very beginning X-Git-Tag: v3.6-rc1~18^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e4bfca1d1f0de62301dd223675717e7a5f63a27;p=pandora-kernel.git 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 --- Reading git-diff-tree failed