From: Pavel Emelyanov <xemul@xxxxxxxxxx> On reading sysctl dirs we should return -EISDIR instead of -EINVAL. Signed-off-by: Pavel Emelyanov <xemul@xxxxxxxxxx> Signed-off-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx> --- fs/proc/proc_sysctl.c | 1 + 1 file changed, 1 insertion(+) Index: linux-2.6.git/fs/proc/proc_sysctl.c =================================================================== --- linux-2.6.git.orig/fs/proc/proc_sysctl.c +++ linux-2.6.git/fs/proc/proc_sysctl.c @@ -370,6 +370,7 @@ static const struct file_operations proc }; static const struct file_operations proc_sys_dir_file_operations = { + .read = generic_read_dir, .readdir = proc_sys_readdir, .llseek = generic_file_llseek, }; -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html