Blame btrfs-progs-fix-labels.patch
|
Josef Bacik |
8bffa8 |
diff -up btrfs-progs-0.19/mkfs.c.orig btrfs-progs-0.19/mkfs.c
|
|
Josef Bacik |
8bffa8 |
--- btrfs-progs-0.19/mkfs.c.orig 2012-04-11 10:38:26.825973948 -0400
|
|
Josef Bacik |
8bffa8 |
+++ btrfs-progs-0.19/mkfs.c 2012-04-11 10:39:46.031360540 -0400
|
|
Josef Bacik |
8bffa8 |
@@ -372,7 +372,6 @@ static u64 parse_profile(char *s)
|
|
Josef Bacik |
0b025a |
|
|
Josef Bacik |
0b025a |
static char *parse_label(char *input)
|
|
Josef Bacik |
0b025a |
{
|
|
Josef Bacik |
0b025a |
- int i;
|
|
Josef Bacik |
0b025a |
int len = strlen(input);
|
|
Josef Bacik |
0b025a |
|
|
Josef Bacik |
8bffa8 |
if (len >= BTRFS_LABEL_SIZE) {
|
|
Josef Bacik |
8bffa8 |
@@ -380,12 +379,6 @@ static char *parse_label(char *input)
|
|
Josef Bacik |
8bffa8 |
BTRFS_LABEL_SIZE - 1);
|
|
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 |
|