[comp.sources.bugs] Patch #2 to Mtools v2.0

egray@osiris.cso.uiuc.edu (Emmet P. Gray) (11/23/90)

This is patch #2 to the Mtools v2.0 distribution package.  This patch
will fix a bug in the folding of MSDOS filenames to lower case, and will
fix a bug that could prevent the detection of a full disk.

Mtools was posted to the unix-pc.sources news group (and mailed to the
moderator of comp.sources.unix) on the 17th of September 1990.  Since
then, patch #1 has been posted to unix-pc.sources, comp.sources.bugs,
and emailed to Rich Salz.

In addition, the current version of Mtools and all the patch are
available via anonymous ftp from cerl.cecer.army.mil (129.229.1.101).

Emmet P. Gray				US Army, HQ III Corps & Fort Hood
...!uunet!uiucuxc!fthood!egray		Attn: AFZF-DE-ENV
fthood!egray@uxc.cso.uiuc.edu		Directorate of Engineering & Housing
					Environmental Management Office
					Fort Hood, TX 76544-5057

-----------------------------------------------------------------------------
Prereq: 2.0.1
*** old/patchlevel.h	Mon Oct  8 15:15:18 1990
--- patchlevel.h	Wed Nov 21 08:23:03 1990
***************
*** 1
! #define VERSION 2.0.1

--- 1 -----
! #define VERSION 2.0.2
*** old/dir_make.c	Sat Sep  8 16:55:42 1990
--- dir_make.c	Wed Nov 21 08:26:24 1990
***************
*** 71,75
  
  /*
!  * Returns next free cluster or -1 if none are available.
   */
  

--- 71,75 -----
  
  /*
!  * Returns next free cluster or 1 if none are available.
   */
  
***************
*** 85,88
  			return(i);
  	}
! 	return(-1);
  }

--- 85,88 -----
  			return(i);
  	}
! 	return(1);
  }
*** old/mattrib.c	Fri Oct 12 08:13:50 1990
--- mattrib.c	Wed Nov 21 08:41:11 1990
***************
*** 9,12
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
   */
  

--- 9,13 -----
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
+  *  patch #2		21 Nov 90
   */
  
*** old/mcd.c	Fri Oct 12 08:14:00 1990
--- mcd.c	Wed Nov 21 08:41:18 1990
***************
*** 9,12
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
   */
  

--- 9,13 -----
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
+  *  patch #2		21 Nov 90
   */
  
*** old/mcopy.c	Fri Oct 12 08:14:12 1990
--- mcopy.c	Wed Nov 21 08:41:24 1990
***************
*** 9,12
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
   */
  

--- 9,13 -----
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
+  *  patch #2		21 Nov 90
   */
  
*** old/mdel.c	Fri Oct 12 08:14:20 1990
--- mdel.c	Wed Nov 21 08:41:30 1990
***************
*** 9,12
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
   */
  

--- 9,13 -----
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
+  *  patch #2		21 Nov 90
   */
  
*** old/mdir.c	Fri Oct 12 08:14:30 1990
--- mdir.c	Wed Nov 21 08:41:37 1990
***************
*** 9,12
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
   */
  

--- 9,13 -----
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
+  *  patch #2		21 Nov 90
   */
  
*** old/mformat.c	Fri Oct 12 08:14:38 1990
--- mformat.c	Wed Nov 21 08:41:43 1990
***************
*** 9,12
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
   */
  

--- 9,13 -----
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
+  *  patch #2		21 Nov 90
   */
  
*** old/mlabel.c	Fri Oct 12 08:14:50 1990
--- mlabel.c	Wed Nov 21 08:41:51 1990
***************
*** 9,12
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
   */
  

--- 9,13 -----
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
+  *  patch #2		21 Nov 90
   */
  
*** old/mmd.c	Fri Oct 12 08:14:58 1990
--- mmd.c	Wed Nov 21 08:41:57 1990
***************
*** 9,12
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
   */
  

--- 9,13 -----
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
+  *  patch #2		21 Nov 90
   */
  
*** old/mrd.c	Fri Oct 12 08:15:06 1990
--- mrd.c	Wed Nov 21 08:42:03 1990
***************
*** 9,12
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
   */
  

--- 9,13 -----
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
+  *  patch #2		21 Nov 90
   */
  
*** old/mread.c	Wed Nov 21 08:39:11 1990
--- mread.c	Wed Nov 21 08:42:09 1990
***************
*** 9,12
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
   */
  

--- 9,13 -----
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
+  *  patch #2		21 Nov 90
   */
  
***************
*** 44,48
  	char *filename, *newfile, *get_name(), *unix_name(), *pathname;
  	char *get_path(), *target, tmp[MAX_PATH], *strcat(), *strcpy(), drive;
! 	char get_drive(), last_drive, *fix_mcwd();
  	void exit(), set_mtime();
  	struct directory *dir, *dir_read();

--- 45,49 -----
  	char *filename, *newfile, *get_name(), *unix_name(), *pathname;
  	char *get_path(), *target, tmp[MAX_PATH], *strcat(), *strcpy(), drive;
! 	char get_drive(), last_drive, *fix_mcwd(), *s;
  	void exit(), set_mtime();
  	struct directory *dir, *dir_read();
***************
*** 152,155
  						mtime = 0L;
  					printf("Copying %s\n", newfile);
  					strcpy(tmp, target);
  					strcat(tmp, "/");

--- 153,164 -----
  						mtime = 0L;
  					printf("Copying %s\n", newfile);
+ #ifdef LOWERCASE
+ 					s = newfile;
+ 					while (*s) {
+ 						if (isupper(*s))
+ 							*s = tolower(*s);
+ 						s++;
+ 					}
+ #endif /* LOWERCASE */
  					strcpy(tmp, target);
  					strcat(tmp, "/");
***************
*** 189,202
  	char ans[10];
  	struct stat stbuf;
- 
- #ifdef LOWERCASE
- 	char *c;
- 	c = target;
- 	while (*c) {
- 		if (isupper(*c))
- 			*c = tolower(*c);
- 		c++;
- 	}
- #endif /* LOWERCASE */
  
  	if (!nowarn) {

--- 198,201 -----
  	char ans[10];
  	struct stat stbuf;
  
  	if (!nowarn) {
*** old/mren.c	Fri Oct 12 08:15:24 1990
--- mren.c	Wed Nov 21 08:42:15 1990
***************
*** 9,12
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
   */
  

--- 9,13 -----
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
+  *  patch #2		21 Nov 90
   */
  
*** old/mtype.c	Fri Oct 12 08:15:32 1990
--- mtype.c	Wed Nov 21 08:42:21 1990
***************
*** 9,12
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
   */
  

--- 9,13 -----
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
+  *  patch #2		21 Nov 90
   */
  
*** old/mwrite.c	Fri Oct 12 08:15:42 1990
--- mwrite.c	Wed Nov 21 08:42:29 1990
***************
*** 9,12
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
   */
  

--- 9,13 -----
   * Version 2.0.0	 8 Sep 90
   *  patch #1		12 Oct 90
+  *  patch #2		21 Nov 90
   */
  
***************
*** 234,238
  
  /*
!  * Open the named file for write, create the cluster chain, return the
   * directory structure or NULL on error.
   */

--- 235,239 -----
  
  /*
!  * Open the named file for read, create the cluster chain, return the
   * directory structure or NULL on error.
   */
End of Patch