Blame btrfs-progs-fix-labels.patch
|
Josef Bacik |
2a45a0 |
diff --git a/mkfs.c b/mkfs.c
|
|
Josef Bacik |
2a45a0 |
index d664254..5ed44cc 100644
|
|
Josef Bacik |
2a45a0 |
--- a/mkfs.c
|
|
Josef Bacik |
2a45a0 |
+++ b/mkfs.c
|
|
Josef Bacik |
2a45a0 |
@@ -302,12 +302,6 @@ static char *parse_label(char *input)
|
|
Josef Bacik |
2a45a0 |
BTRFS_LABEL_SIZE);
|
|
Josef Bacik |
2a45a0 |
exit(1);
|
|
Josef Bacik |
2a45a0 |
}
|
|
Josef Bacik |
2a45a0 |
- for (i = 0; i < len; i++) {
|
|
Josef Bacik |
2a45a0 |
- if (input[i] == '/' || input[i] == '\\') {
|
|
Josef Bacik |
2a45a0 |
- fprintf(stderr, "invalid label %s\n", input);
|
|
Josef Bacik |
2a45a0 |
- exit(1);
|
|
Josef Bacik |
2a45a0 |
- }
|
|
Josef Bacik |
2a45a0 |
- }
|
|
Josef Bacik |
2a45a0 |
return strdup(input);
|
|
Josef Bacik |
2a45a0 |
}
|
|
Josef Bacik |
2a45a0 |
|