aboutsummaryrefslogtreecommitdiffstats
path: root/fs
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 /fs
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 'fs')
-rw-r--r--fs/binfmt_aout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_aout.c b/fs/binfmt_aout.c
index acdd5384856651..8075fdff23646c 100644
--- a/fs/binfmt_aout.c
+++ b/fs/binfmt_aout.c
@@ -112,7 +112,7 @@ static int aout_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));
#ifndef __sparc__
dump.u_ar0 = (void *)(((unsigned long)(&dump.regs)) - ((unsigned long)(&dump)));
#endif