diff mbox

[3/6] Fedora 18 - fix-labels.patch

Message ID 1358618781-26629-4-git-send-email-gene@czarc.net (mailing list archive)
State New, archived
Headers show

Commit Message

Gene Czarcinski Jan. 19, 2013, 6:06 p.m. UTC
Signed-off-by: Gene Czarcinski <gene@czarc.net>
---
 mkfs.c | 7 -------
 1 file changed, 7 deletions(-)

Comments

Gene Czarcinski Jan. 22, 2013, 9:45 p.m. UTC | #1
Here is the source of this patch:
http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg01850.html

and  the update that is the current patch:
http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg01851.html

Gene

On 01/19/2013 01:06 PM, Gene Czarcinski wrote:
> Signed-off-by: Gene Czarcinski <gene@czarc.net>
> ---
>   mkfs.c | 7 -------
>   1 file changed, 7 deletions(-)
>
> 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);
>   }
>   

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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);
 }