Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755077Ab1FHT2E (ORCPT ); Wed, 8 Jun 2011 15:28:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59577 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754895Ab1FHT2C (ORCPT ); Wed, 8 Jun 2011 15:28:02 -0400 Date: Wed, 8 Jun 2011 21:26:04 +0200 From: Oleg Nesterov To: Jiri Slaby Cc: Jiri Slaby , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Alan Cox , Al Viro , Andi Kleen Subject: Re: [PATCH v2 1/2] coredump: use task comm instead of (unknown) Message-ID: <20110608192604.GA19471@redhat.com> References: <1307457010-7241-1-git-send-email-jslaby@suse.cz> <20110607181607.GA3732@redhat.com> <4DEE6E33.6020701@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DEE6E33.6020701@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 795 Lines: 33 On 06/07, Jiri Slaby wrote: > > On 06/07/2011 08:16 PM, Oleg Nesterov wrote: > > > And, I am just noticed... > > > > for (p = path; *p; p++) > > if (*p == '/') > > *p = '!'; > > > > Why??? I am not arguing, just curious. > > In fact the reason is in the patch 2/2: > coredump: escape / in hostname and comm which I can't find ;) but, > Change every occurence of / in comm and hostname to !. If the process > changes its name to contain /, the core is not dumped Ah, indeed, somehow I forgot about !ispipe case. Thanks. Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/