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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1538
61caa39d7426 fix patch binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 --- patch-2.6.1.orig/src/patch.c 2009-12-30 13:56:30.000000000 +0100
61caa39d7426 fix patch binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 +++ patch-2.6.1/src/patch.c 2015-08-13 16:46:23.886129878 +0200
61caa39d7426 fix patch binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 @@ -415,8 +415,10 @@
61caa39d7426 fix patch binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 quotearg (outname));
61caa39d7426 fix patch binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 if (geteuid () != instat.st_gid)
61caa39d7426 fix patch binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 {
61caa39d7426 fix patch binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 +#if !defined(_WIN32)
61caa39d7426 fix patch binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 /* Fails if we are not in group instat.st_gid. */
61caa39d7426 fix patch binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 chown (outname, -1, instat.st_gid);
61caa39d7426 fix patch binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 +#endif
61caa39d7426 fix patch binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 }
61caa39d7426 fix patch binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 /* FIXME: There may be other attributes to preserve. */
61caa39d7426 fix patch binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 }