summaryrefslogtreecommitdiffstats
path: root/usr.sbin/fstyp/ext2fs.c
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2015-01-20 20:44:16 +0000
committertrasz <trasz@FreeBSD.org>2015-01-20 20:44:16 +0000
commit4e06276ca80017dc9ae6bf58a11621640d2cadc7 (patch)
tree5d419c0a2261691f03540a5314a0319c43a08895 /usr.sbin/fstyp/ext2fs.c
parent1444c0c436ce1ab5136cbbdb015aabcc6ae5a251 (diff)
downloadFreeBSD-src-4e06276ca80017dc9ae6bf58a11621640d2cadc7.zip
FreeBSD-src-4e06276ca80017dc9ae6bf58a11621640d2cadc7.tar.gz
MFC r277128:
Fix detection of ext2/ext3 filesystems that lack labels. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/fstyp/ext2fs.c')
-rw-r--r--usr.sbin/fstyp/ext2fs.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/usr.sbin/fstyp/ext2fs.c b/usr.sbin/fstyp/ext2fs.c
index 09336e5..79a4e3a 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);
OpenPOWER on IntegriCloud