aboutsummaryrefslogtreecommitdiffstats
path: root/main/util-vserver/chmod.patch
blob: 53861e8932b8b493be79872dfc4770a7383d80ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ru a/Makefile.am b/Makefile.am
--- a/Makefile.am	2009-09-29 13:48:10.000000000 +0000
+++ b/Makefile.am	2009-09-29 13:50:00.000000000 +0000
@@ -149,7 +149,7 @@
 			@mkdir -p $$(dirname '$@')
 			@echo "$(SED) -e '...' $*.pathsubst >$*"
 			@$(SED) -e '$(pathsubst_RULES)' '$<' >'$@.tmp'
-			@-chmod --reference='$<' '$@.tmp'
+			@-chmod $$(stat -c %a '$<') '$@.tmp'
 			@if cmp -s '$@.tmp' '$*'; then \
 				echo "... no changes, reusing old version"; \
 				rm -f '$@.tmp'; \