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

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