# [PATCH] git clone needs to know executability of template files

2 messages from 2009-03-19 to 2009-03-19. Participants: Alex Riesen, Johannes Schindelin.
Thread: https://gitlist.dev/t/18403

## Alex Riesen, 2009-03-19 10:28

Subject: [PATCH] git clone needs to know executability of template files
Message-ID: <81b0412b0903190328n17007b4alcf5d91db562db62b@mail.gmail.com>
URL: https://gitlist.dev/e/81b0412b0903190328n17007b4alcf5d91db562db62b%40mail.gmail.com

```
Use posix_lstat for template source.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 builtin-init-db.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


From e7b9002e3157607aa251b85e4f94f5866d9bf375 Mon Sep 17 00:00:00 2001
From: Alex Riesen <raa.lkml@gmail.com>
Date: Thu, 19 Mar 2009 11:17:59 +0100
Subject: [PATCH 2/4] git clone needs to know executability of template files

Use posix_lstat for template source.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 builtin-init-db.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/builtin-init-db.c b/builtin-init-db.c
index ee3911f..0b6dc16 100644
--- a/builtin-init-db.c
+++ b/builtin-init-db.c
@@ -66,7 +66,7 @@ static void copy_templates_1(char *path, int baselen,
 		else
 			exists = 1;
 
-		if (lstat(template, &st_template))
+		if (posix_lstat(template, &st_template))
 			die("cannot stat template %s", template);
 
 		if (S_ISDIR(st_template.st_mode)) {
-- 
1.6.2.142.gaf8db


```

## Johannes Schindelin, 2009-03-19 10:57

Subject: Re: [PATCH] git clone needs to know executability of template files
Message-ID: <alpine.DEB.1.00.0903191157120.10279@pacific.mpi-cbg.de>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0903191157120.10279%40pacific.mpi-cbg.de
In-Reply-To: <81b0412b0903190328n17007b4alcf5d91db562db62b@mail.gmail.com>

```
Hi,

On Thu, 19 Mar 2009, Alex Riesen wrote:

> Use posix_lstat for template source.
> 
> Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
> ---

As this patch builds on top of your earlier patch, you should have made a 
patch series.

But as I said, I think it is wrong.

Ciao,
Dscho

```
