Message ID | 1358607385-21163-4-git-send-email-gene@czarc.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/mkfs.c b/mkfs.c index d123d5f..8c291c9 100644 --- a/mkfs.c +++ b/mkfs.c @@ -352,7 +352,6 @@ static u64 parse_profile(char *s) static char *parse_label(char *input) { - int i; int len = strlen(input); if (len >= BTRFS_LABEL_SIZE) { @@ -360,12 +359,6 @@ static char *parse_label(char *input) BTRFS_LABEL_SIZE - 1); exit(1); } - for (i = 0; i < len; i++) { - if (input[i] == '/' || input[i] == '\\') { - fprintf(stderr, "invalid label %s\n", input); - exit(1); - } - } return strdup(input); }