Re: [PATCH 05/11] Use is_absolute_path() in sha1_file.c.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 13, 2007, 21:39 UTC
- Message-ID
- <Pine.LNX.4.64.0711132138360.4362@racer.site>
- In-Reply-To
- <1194984306-3181-6-git-send-email-johannes.sixt@telecom.at>
Hi,
On Tue, 13 Nov 2007, Johannes Sixt wrote:
Show 11 quoted lines
> diff --git a/sha1_file.c b/sha1_file.c > index f007874..560c0e0 100644 > --- a/sha1_file.c > +++ b/sha1_file.c > @@ -86,7 +86,7 @@ int safe_create_leading_directories(char *path) > char *pos = path; > struct stat st; > > - if (*pos == '/') > + if (is_absolute_path(path)) > pos++;
Is this enough? On Windows, certain "absolute" paths would need "pos += 3", no?
Ciao, Dscho