aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2015-01-13 13:59:48 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2015-01-13 13:59:48 +0000
commitb43dc82c6beac28efe79466ecae0cbe1e2a1efb3 (patch)
tree5918aeade84120008472e58b2ed63f42223e5e36
parent9570004318c8c39ced79d36448b4feb3f28bdeb0 (diff)
downloadsrc-b43dc82c6beac28efe79466ecae0cbe1e2a1efb3.tar.gz
src-b43dc82c6beac28efe79466ecae0cbe1e2a1efb3.zip
Fix detection of ext2/ext3 filesystems that lack labels.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=277128
-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 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);