Mercurial > hg > orthanc
annotate Resources/ThirdParty/patch/fix-sources.patch @ 1546:17a3814fd8a1
fix patches on windows
author | jodogne |
---|---|
date | Fri, 14 Aug 2015 11:16:17 +0200 |
parents | 61caa39d7426 |
children |
rev | line source |
---|---|
1538 | 1 --- patch-2.6.1.orig/src/patch.c 2009-12-30 13:56:30.000000000 +0100 |
2 +++ patch-2.6.1/src/patch.c 2015-08-13 16:46:23.886129878 +0200 | |
3 @@ -415,8 +415,10 @@ | |
4 quotearg (outname)); | |
5 if (geteuid () != instat.st_gid) | |
6 { | |
7 +#if !defined(_WIN32) | |
8 /* Fails if we are not in group instat.st_gid. */ | |
9 chown (outname, -1, instat.st_gid); | |
10 +#endif | |
11 } | |
12 /* FIXME: There may be other attributes to preserve. */ | |
13 } |