]> git.pld-linux.org Git - packages/btrfs-progs.git/blob - btrfs-progs-fix-labels.patch
- add patches from fedora
[packages/btrfs-progs.git] / btrfs-progs-fix-labels.patch
1 diff --git a/mkfs.c b/mkfs.c
2 index d664254..138bcc9 100644
3 --- a/mkfs.c
4 +++ b/mkfs.c
5 @@ -294,7 +294,6 @@ static u64 parse_profile(char *s)
6  
7  static char *parse_label(char *input)
8  {
9 -       int i;
10         int len = strlen(input);
11  
12         if (len > BTRFS_LABEL_SIZE) {
13 @@ -302,12 +301,6 @@ static char *parse_label(char *input)
14                         BTRFS_LABEL_SIZE);
15                 exit(1);
16         }
17 -       for (i = 0; i < len; i++) {
18 -               if (input[i] == '/' || input[i] == '\\') {
19 -                       fprintf(stderr, "invalid label %s\n", input);
20 -                       exit(1);
21 -               }
22 -       }
23         return strdup(input);
24  }
25  
This page took 0.097207 seconds and 3 git commands to generate.