Import of pkgsrc-2014Q1

This commit is contained in:
2014-04-17 16:38:45 +02:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions

View 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);