From b43dc82c6beac28efe79466ecae0cbe1e2a1efb3 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Tue, 13 Jan 2015 13:59:48 +0000 Subject: [PATCH] Fix detection of ext2/ext3 filesystems that lack labels. MFC after: 1 month Sponsored by: The FreeBSD Foundation --- usr.sbin/fstyp/ext2fs.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/usr.sbin/fstyp/ext2fs.c b/usr.sbin/fstyp/ext2fs.c index 09336e5e95be..79a4e3ad4172 100644 --- a/usr.sbin/fstyp/ext2fs.c +++ b/usr.sbin/fstyp/ext2fs.c @@ -78,12 +78,6 @@ fstyp_ext2fs(FILE *fp, char *label, size_t size) if (s_volume_name[0] == '/') s_volume_name += 1; - /* Check for volume label */ - if (s_volume_name[0] == '\0') { - free(fs); - return (1); - } - strlcpy(label, s_volume_name, size); free(fs);