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

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