svn commit: r277128 - head/usr.sbin/fstyp

Edward Tomasz Napierala trasz at FreeBSD.org
Tue Jan 13 13:59:49 UTC 2015


Author: trasz
Date: Tue Jan 13 13:59:48 2015
New Revision: 277128
URL: https://svnweb.freebsd.org/changeset/base/277128

Log:
  Fix detection of ext2/ext3 filesystems that lack labels.
  
  MFC after:	1 month
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/usr.sbin/fstyp/ext2fs.c

Modified: head/usr.sbin/fstyp/ext2fs.c
==============================================================================
--- head/usr.sbin/fstyp/ext2fs.c	Tue Jan 13 13:32:18 2015	(r277127)
+++ head/usr.sbin/fstyp/ext2fs.c	Tue Jan 13 13:59:48 2015	(r277128)
@@ -78,12 +78,6 @@ fstyp_ext2fs(FILE *fp, char *label, 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);
 


More information about the svn-src-all mailing list