mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Fix detection of ext2/ext3 filesystems that lack labels.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
9570004318
commit
b43dc82c6b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277128
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user