Import of pkgsrc-2014Q1
This commit is contained in:
18
devel/git-base/patches/patch-wrapper.c
Normal file
18
devel/git-base/patches/patch-wrapper.c
Normal file
@@ -0,0 +1,18 @@
|
||||
$NetBSD: patch-wrapper.c,v 1.1 2013/09/09 13:54:44 wiz Exp $
|
||||
|
||||
git's wrapper around mkstemp assumes that the libc function will not
|
||||
modify the argument when the call fails. This causes one of git's
|
||||
tests to fail. This patch is from Junio C. Hamano, and will likely be
|
||||
included in future versions of git.
|
||||
|
||||
--- wrapper.c.orig 2012-11-26 03:18:01.000000000 +0000
|
||||
+++ wrapper.c
|
||||
@@ -229,7 +229,7 @@ int xmkstemp(char *template)
|
||||
int saved_errno = errno;
|
||||
const char *nonrelative_template;
|
||||
|
||||
- if (!template[0])
|
||||
+ if (strlen(template) != strlen(origtemplate))
|
||||
template = origtemplate;
|
||||
|
||||
nonrelative_template = absolute_path(template);
|
||||
Reference in New Issue
Block a user