git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Sixt <j6t@kdbg.org>
To: "Erik Faye-Lund" <kusmabite@gmail.com>
Cc: msysgit@googlegroups.com, git@vger.kernel.org
Subject: Re: [msysGit] [PATCH] mingw: do not crash on open(NULL, ...)
Date: Thu, 23 Sep 2010 22:08:56 +0200	[thread overview]
Message-ID: <201009232208.56916.j6t@kdbg.org> (raw)
In-Reply-To: <1285263325-2016-1-git-send-email-kusmabite@gmail.com>

On Donnerstag, 23. September 2010, Erik Faye-Lund wrote:
> @@ -297,7 +297,7 @@ int mingw_open (const char *filename, int oflags, ...)
>  	mode = va_arg(args, int);
>  	va_end(args);
>
> -	if (!strcmp(filename, "/dev/null"))
> +	if (filename && !strcmp(filename, "/dev/null"))
>  		filename = "nul";
>
>  	fd = open(filename, oflags, mode);

Good catch, thank you!

Acked-by: Johannes Sixt <j6t@kdbg.org>

-- Hannes

  parent reply	other threads:[~2010-09-23 20:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-23 17:35 [PATCH] mingw: do not crash on open(NULL, ...) Erik Faye-Lund
2010-09-23 17:59 ` Erik Faye-Lund
2010-09-23 20:27   ` Pat Thoyts
2010-09-23 21:06     ` [msysGit] " Erik Faye-Lund
2010-09-23 22:50   ` Junio C Hamano
2010-09-27 13:19     ` Erik Faye-Lund
2010-09-27 13:31       ` [msysGit] " Pat Thoyts
2010-09-27 13:37         ` Erik Faye-Lund
2010-09-27 13:59         ` Johannes Schindelin
2010-09-24  0:32   ` [msysGit] " Johannes Schindelin
2010-09-23 20:08 ` Johannes Sixt [this message]
2010-09-24 14:22   ` [msysGit] " Pat Thoyts

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=201009232208.56916.j6t@kdbg.org \
    --to=j6t@kdbg.org \
    --cc=git@vger.kernel.org \
    --cc=kusmabite@gmail.com \
    --cc=msysgit@googlegroups.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).