diff options
author | trasz <trasz@FreeBSD.org> | 2015-01-13 13:59:48 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2015-01-13 13:59:48 +0000 |
commit | 199ee0f126e461bda6f62bab9b662038dc3d05ca (patch) | |
tree | 5918aeade84120008472e58b2ed63f42223e5e36 /usr.sbin | |
parent | 4d7a9f7cc13d3e44121d38d2b286dfaf84f1d560 (diff) | |
download | FreeBSD-src-199ee0f126e461bda6f62bab9b662038dc3d05ca.zip FreeBSD-src-199ee0f126e461bda6f62bab9b662038dc3d05ca.tar.gz |
Fix detection of ext2/ext3 filesystems that lack labels.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/fstyp/ext2fs.c | 6 |
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); |