aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPrasanna Meda <pmeda@akamai.com>2005-01-11 03:18:08 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-11 03:18:08 -0800
commitbf36f91f08100b758a4f12811da05b9c1ce09c90 (patch)
tree6bde96dc69c66ddb74b547c31ad38829681eaf62 /arch
parent88464d1b5a18ba983f6721c9b473215d2a0a6341 (diff)
downloadhistory-bf36f91f08100b758a4f12811da05b9c1ce09c90.tar.gz
[PATCH] easily tweakable comm length
This change still keeps the comm length at 16, but allows easier patching for local modifications, and also introduces a macro to use instead of magic 16, where sizeof(comm) is not preferable to use. Not able to use killall, pidof etc. effectively, when long process names are used for scripts. Just changing the command length from 16 to 32 breaks a.out coredump logic. Deamonise and get_task_comm helped in other places in 2.6.10. Signed-off-by: Prasanna Meda <pmeda@akamai.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc64/kernel/binfmt_aout32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/binfmt_aout32.c b/arch/sparc64/kernel/binfmt_aout32.c
index 64d547853b48c0..c54d806e13d273 100644
--- a/arch/sparc64/kernel/binfmt_aout32.c
+++ b/arch/sparc64/kernel/binfmt_aout32.c
@@ -95,7 +95,7 @@ static int aout32_core_dump(long signr, struct pt_regs *regs, struct file *file)
set_fs(KERNEL_DS);
has_dumped = 1;
current->flags |= PF_DUMPCORE;
- strncpy(dump.u_comm, current->comm, sizeof(current->comm));
+ strncpy(dump.u_comm, current->comm, sizeof(dump.u_comm));
dump.signal = signr;
dump_thread(regs, &dump);