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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here is the source of this patch:
http://www.mail-archive.com/linux-btrfs@xxxxxxxxxxxxxxx/msg01850.html

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

Gene

On 01/19/2013 01:06 PM, Gene Czarcinski wrote:
Signed-off-by: Gene Czarcinski <gene@xxxxxxxxx>
---
  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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux