diff: delete calls to `chmod -w'

Fergus Henderson fjh at cs.mu.oz.au
Fri Nov 21 23:33:39 AEDT 1997


configure.in:
scripts/Mmake.rules:
	Delete all calls to `chmod -w'.  Turning off write permission seems
	to cause more problems than it solves.  Amoung other things,
	it causes problems on systems such as Windows where you can't
	delete a read-only file.  (GNU-win32 has some work-arounds for
	that, but there are bugs in the work-arounds.)
	We should probably also delete the various calls to `chmod +w',
	since they are no longer needed, but for the moment I have left
	them in for backwards compatibility.  We can reconsider this
	in a year or two's time.

Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.118
diff -u -r1.118 configure.in
--- configure.in	1997/11/20 01:58:34	1.118
+++ configure.in	1997/11/21 12:28:05
@@ -1558,7 +1558,6 @@
 # conftest.junk is used to avoid a warning if there
 # are no files in the list passed to chmod
 touch conftest.junk
-chmod a-w $CONFIG_FILES $CONFIG_HEADERS conftest.junk
 chmod +x `echo $CONFIG_FILES | sed -e 's/[^ ]*Mmake.common//' ` conftest.junk
 rm -f conftest.junk
 
Index: scripts/Mmake.rules
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/Mmake.rules,v
retrieving revision 1.45
diff -u -r1.45 Mmake.rules
--- Mmake.rules	1997/11/21 08:08:31	1.45
+++ Mmake.rules	1997/11/21 12:24:16
@@ -82,12 +82,10 @@
 .m.dep:
 	@-[ ! -f $*.dep ] || chmod +w $*.dep
 	$(MCD) $(MCDFLAGS) $<
-	@-chmod -w $*.dep
 
 .m.depend:
 	@-[ ! -f $*.dep ] || chmod +w $*.dep
 	$(MCD) $(MCDFLAGS) $<
-	@-chmod -w $*.dep
 	-rm -f $*_init.c
 
 .dep.doit:

-- 
Fergus Henderson <fjh at cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3         |     -- the last words of T. S. Garp.



More information about the developers mailing list