make sysctl/kernel/core_pattern and fs/exec.c agree on maximum core filename size
[sfrench/cifs-2.6.git] / kernel / sysctl.c
index 4073353abd4f8d05a017931ce6119dc552238237..30ee462ee79f8646eace494e5244ddaace7f5d95 100644 (file)
@@ -227,7 +227,7 @@ static ctl_table kern_table[] = {
                .ctl_name       = KERN_CORE_PATTERN,
                .procname       = "core_pattern",
                .data           = core_pattern,
-               .maxlen         = 128,
+               .maxlen         = CORENAME_MAX_SIZE,
                .mode           = 0644,
                .proc_handler   = &proc_dostring,
                .strategy       = &sysctl_string,