All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 2/2] Handle invalid argc gently
Date: Thu, 14 Sep 2006 17:16:26 +0400	[thread overview]
Message-ID: <20060914131626.GE6709@basalt.office.altlinux.org> (raw)
In-Reply-To: <7vpsdz5542.fsf@assigned-by-dhcp.cox.net>

[-- Attachment #1: Type: text/plain, Size: 659 bytes --]

On Wed, Sep 13, 2006 at 11:34:05PM -0700, Junio C Hamano wrote:
> "Dmitry V. Levin" <ldv@altlinux.org> writes:
> > On Wed, Sep 13, 2006 at 06:12:02PM -0700, Junio C Hamano wrote:
> >> "Dmitry V. Levin" <ldv@altlinux.org> writes:
> >> 
> >> > describe, git: Handle argc==0 case the same way as argc==1.
> >> 
> >> When does one get (ac == 0)?
> >
> > When one executes something like
> > execlp("git", NULL, NULL);
> 
> Fair enough.
> 
> What is the valid reason to do execlp("git", NULL, NULL)?

Personally I do not plan to execute git this way on regular basis, indeed. :)

But argc == 0 is allowed, so why should git crash?


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-09-14 13:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-14  1:04 [PATCH 2/2] Handle invalid argc gently Dmitry V. Levin
2006-09-14  1:12 ` Junio C Hamano
2006-09-14  1:31   ` Dmitry V. Levin
2006-09-14  6:34     ` Junio C Hamano
2006-09-14 13:16       ` Dmitry V. Levin [this message]
2006-09-14 16:53         ` Junio C Hamano
2006-09-14 18:25           ` Dmitry V. Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060914131626.GE6709@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.