From: Matthieu Moy Subject: Re: [PATCH] mailsplit.c: remove dead code Date: Tue, 12 Aug 2014 23:56:11 +0200 Message-ID: References: <53EA430E.8050905@web.de> <1407878487-23530-1-git-send-email-stefanbeller@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Stefan Beller , l.s.r@web.de, git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Tue Aug 12 23:56:24 2014 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XHK3K-0002V3-1Y for gcvg-git-2@plane.gmane.org; Tue, 12 Aug 2014 23:56:22 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753142AbaHLV4S (ORCPT ); Tue, 12 Aug 2014 17:56:18 -0400 Received: from mx1.imag.fr ([129.88.30.5]:40907 "EHLO shiva.imag.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752782AbaHLV4R (ORCPT ); Tue, 12 Aug 2014 17:56:17 -0400 Received: from clopinette.imag.fr (clopinette.imag.fr [129.88.34.215]) by shiva.imag.fr (8.13.8/8.13.8) with ESMTP id s7CLu9sF002437 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 12 Aug 2014 23:56:09 +0200 Received: from anie.imag.fr (anie.imag.fr [129.88.7.32]) by clopinette.imag.fr (8.13.8/8.13.8) with ESMTP id s7CLuBxE017300; Tue, 12 Aug 2014 23:56:11 +0200 In-Reply-To: (Junio C. Hamano's message of "Tue, 12 Aug 2014 14:38:45 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (shiva.imag.fr [129.88.30.5]); Tue, 12 Aug 2014 23:56:09 +0200 (CEST) X-IMAG-MailScanner-Information: Please contact MI2S MIM for more information X-MailScanner-ID: s7CLu9sF002437 X-IMAG-MailScanner: Found to be clean X-IMAG-MailScanner-SpamCheck: X-IMAG-MailScanner-From: matthieu.moy@grenoble-inp.fr MailScanner-NULL-Check: 1408485370.2292@xncAPLLONvSnD7BVJp6AzA Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Junio C Hamano writes: > Matthieu Moy writes: > >> Stefan Beller writes: >> >>> + if (is_bare && !allow_bare) { >>> + unlink(name); >>> + fprintf(stderr, "corrupt mailbox\n"); >>> + exit(1); >>> + } >> >> Not directly related to your patch, but shouldn't this be using >> >> die(_("corrupt mailbox")); >> >> instead? > > Doesn't the exit status of mailsplit matter to its existing > invokers? Not within Git. I doubt anybody checks if the exit status is 1 and relies on that for corrupt mailboxes, but OTOH, changing the code may not be worth the trouble. -- Matthieu Moy http://www-verimag.imag.fr/~moy/