]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix off-by-one error in fstyp(8) and geom_label(4) that made them use
authorEdward Tomasz Napierala <trasz@FreeBSD.org>
Thu, 18 Jun 2015 21:55:55 +0000 (21:55 +0000)
committerEdward Tomasz Napierala <trasz@FreeBSD.org>
Thu, 18 Jun 2015 21:55:55 +0000 (21:55 +0000)
commit628b71282606416dc5a4d4d896c2cec23a57c3e9
tree4066f81eaf35cc353c8f3611fe6de9b0fd9df77f
parent37f9264d59a2cfe97ec8e74c7550a5dfd4b2cc08
Fix off-by-one error in fstyp(8) and geom_label(4) that made them use
a single space (" ") as a CD9660 label name when no label was present.
Similar problem was also present in msdosfs label recognition.

PR: 200828
Differential Revision: https://reviews.freebsd.org/D2830
Reviewed by: asomers@, emaste@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
sys/geom/label/g_label.c
sys/geom/label/g_label.h
sys/geom/label/g_label_iso9660.c
sys/geom/label/g_label_msdosfs.c
usr.sbin/fstyp/cd9660.c
usr.sbin/fstyp/fstyp.c
usr.sbin/fstyp/fstyp.h
usr.sbin/fstyp/msdosfs.c