[net.sources] Mix - allowing catmix to work for a read-only file

ira@slovax.UUCP (Ira G. Chayut) (04/24/87)

As posted, mix requires the user to have write permission for a mix'd file 
even if the file is just being catmix'd.  The following diff's (at the
top of "readfile" seems to work for me.

487c487
<     int checkval, type_open;
---
>     int checkval;
492,493c492
<     type_open = (context == CATMIX) ? 0 : 2;
<     if ((fd = open(fstring, type_open)) == -1) {
---
>     if ((fd = open(fstring, 2)) == -1) {

	Ira Chayut; R & D Associates; 3625 Perkins Lane, SW; Tacoma, WA 98499
	(206) 581-1322			       ....uw-beaver!tikal!slovax!ira