Newsgroups: comp.sources.bugs
Subject: Mtools official patch 2,  please apply.

	A number of people complained about problems with binary files,
this was due a small slip in wmrite.c introduced while cleaning up the code.
It continued to work on High Density disks where clus_size = 1,  but
broke badly on 720K disks where clus_size = 2,  the effect was that only 8
out of 9 blocks made it to the floppy.  I also changed the makefile to install
the Mkdfs.1 man-page,  and to correct the object list for MREN.

*** /tmp/,RCSt1a06212	Mon Mar 26 20:03:16 1990
--- Makefile	Mon Mar 26 18:20:15 1990
***************
*** 23,29 ****
  MTYPE	= mtype.o match.o $(CMNOBJ)
  MMD	= mmd.o fixname.o putfat.o mkentry.o $(CMNOBJ)
  MRD	= mrd.o putfat.o $(CMNOBJ)
! MREN	= mren.o fixname.o putfat.c isdir.o $(CMNOBJ)
  MCOPY	= mcopy.o
  
  all:	$(PROGS)
--- 23,29 ----
  MTYPE	= mtype.o match.o $(CMNOBJ)
  MMD	= mmd.o fixname.o putfat.o mkentry.o $(CMNOBJ)
  MRD	= mrd.o putfat.o $(CMNOBJ)
! MREN	= mren.o fixname.o putfat.o isdir.o $(CMNOBJ)
  MCOPY	= mcopy.o
  
  all:	$(PROGS)
***************
*** 74,79 ****
--- 74,80 ----
  	cp Mread.1 $(MANDIR)/mread.1
  	cp Mdir.1 $(MANDIR)/mdir.1
  	cp Mwrite.1 $(MANDIR)/mwrite.1
+ 	cp Mkdfs.1 $(MANDIR)/mkdfs.1
  	cp Mdel.1 $(MANDIR)/mdel.1
  	cp Mtype.1 $(MANDIR)/mtype.1
  	cp Mmd.1 $(MANDIR)/mmd.1
*** /tmp/,RCSt1a06212	Mon Mar 26 20:03:16 1990
--- mwrite.c	Mon Mar 26 19:57:58 1990
***************
*** 351,357 ****
  {
  	static int blk;
  	int c, nclust, current, eof=0;
! 	int buflen = ( end - start ) * MSECSIZ ;
  	register char *tbuf=outbuf;
  
  	blk = (start - 2)*clus_size + dir_start + dir_len;
--- 351,357 ----
  {
  	static int blk;
  	int c, nclust, current, eof=0;
! 	int buflen = ( end - start ) * MSECSIZ * clus_size ;
  	register char *tbuf=outbuf;
  
  	blk = (start - 2)*clus_size + dir_start + dir_len;
