diff -urN linux.orig/Documentation/Configure.help linux/Documentation/Configure.help --- linux.orig/Documentation/Configure.help Tue Sep 25 17:02:27 2001 +++ linux/Documentation/Configure.help Tue Sep 25 16:54:23 2001 @@ -8765,6 +8765,12 @@ from within Linux if you have also said Y to "UFS filesystem support", above. +Long corefile names +CONFIG_COREFILE_LONGNAME + If you say Y here, core files will be named 'core.[process]' where + '[process]' is the name of the process which dumped core. + Otherwise, they will be named 'core' by default. + ADFS filesystem support (read only) (EXPERIMENTAL) CONFIG_ADFS_FS The Acorn Disc Filing System is the standard filesystem of the diff -urN linux.orig/fs/Config.in linux/fs/Config.in --- linux.orig/fs/Config.in Tue Sep 25 17:02:34 2001 +++ linux/fs/Config.in Tue Sep 25 16:53:08 2001 @@ -6,6 +6,7 @@ bool 'Quota support' CONFIG_QUOTA tristate 'Kernel automounter support' CONFIG_AUTOFS_FS +bool 'Long corefile names' CONFIG_COREFILE_LONGNAME if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then diff -urN linux.orig/fs/binfmt_elf.c linux/fs/binfmt_elf.c --- linux.orig/fs/binfmt_elf.c Tue Sep 25 17:02:34 2001 +++ linux/fs/binfmt_elf.c Tue Sep 25 16:53:08 2001 @@ -1140,7 +1140,7 @@ set_fs(KERNEL_DS); memcpy(corefile,"core.",5); -#if 0 +#ifdef CONFIG_COREFILE_LONGNAME memcpy(corefile+5,current->comm,sizeof(current->comm)); #else corefile[4] = '\0';