Blame SOURCES/dosfstools-3.0.20-allow-lowercase-labels.patch

454bcc
diff --git a/src/fatlabel.c b/src/fatlabel.c
454bcc
index 8397a97..d45fb95 100644
454bcc
--- a/src/fatlabel.c
454bcc
+++ b/src/fatlabel.c
454bcc
@@ -119,8 +119,8 @@ int main(int argc, char *argv[])
454bcc
 	    /* don't know if here should be more strict !uppercase(label[i]) */
454bcc
 	    if (islower(label[i])) {
454bcc
 		fprintf(stderr,
454bcc
-			"fatlabel: labels cannot contain lower case characters\n");
454bcc
-		exit(1);
454bcc
+			"fatlabel: warning - lowercase labels might not work properly with DOS or Windows\n");
454bcc
+		break;
454bcc
 	    }
454bcc
 	rw = 1;
454bcc
     }
454bcc
diff --git a/src/mkfs.fat.c b/src/mkfs.fat.c
454bcc
index cfa3288..9e960ba 100644
454bcc
--- a/src/mkfs.fat.c
454bcc
+++ b/src/mkfs.fat.c
454bcc
@@ -1536,8 +1536,13 @@ int main(int argc, char **argv)
454bcc
 
454bcc
 	case 'n':		/* n : Volume name */
454bcc
 	    sprintf(volume_name, "%-11.11s", optarg);
454bcc
-	    for (i = 0; i < 11; i++)
454bcc
-		volume_name[i] = toupper(volume_name[i]);
454bcc
+	    for (i = 0; volume_name[i] && i < 11; i++)
454bcc
+		/* don't know if here should be more strict !uppercase(label[i]) */
454bcc
+		if (islower(volume_name[i])) {
454bcc
+		    fprintf(stderr,
454bcc
+		            "mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows\n");
454bcc
+		    break;
454bcc
+		}
454bcc
 
454bcc
 	    break;
454bcc