diff options
author | pfg <pfg@FreeBSD.org> | 2014-08-13 21:18:31 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2014-08-13 21:18:31 +0000 |
commit | b7d1d909164cfa0ba2568a6b898cda71faaf8b97 (patch) | |
tree | ef574b22ae479afbe619169b8ea4149332505bf4 /sbin/newfs_msdos | |
parent | 8e895517a8fcbfd91a84b3886be714c01731f8a6 (diff) | |
download | FreeBSD-src-b7d1d909164cfa0ba2568a6b898cda71faaf8b97.zip FreeBSD-src-b7d1d909164cfa0ba2568a6b898cda71faaf8b97.tar.gz |
Use "NO NAME" as the default unnamed label.
Microsoft recommends avoiding the use of spaces in the
string structures for FAT. Unfortunately they do just
that by default in the case of unlabeled filesystems.
Follow the default MS behavior to avoid confusion in
common tools like file(1). This was actually the
default behavior before r203868.
Obtained from: NetBSD (CVS rev. 1.39)
MFC after: 3 days
Diffstat (limited to 'sbin/newfs_msdos')
-rw-r--r-- | sbin/newfs_msdos/newfs_msdos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c index 4bfb219..f315d98 100644 --- a/sbin/newfs_msdos/newfs_msdos.c +++ b/sbin/newfs_msdos/newfs_msdos.c @@ -689,7 +689,7 @@ main(int argc, char *argv[]) ((u_int)tm->tm_hour << 8 | (u_int)tm->tm_min)); mk4(bsx->exVolumeID, x); - mklabel(bsx->exVolumeLabel, opt_L ? opt_L : "NO_NAME"); + mklabel(bsx->exVolumeLabel, opt_L ? opt_L : "NO NAME"); sprintf(buf, "FAT%u", fat); setstr(bsx->exFileSysType, buf, sizeof(bsx->exFileSysType)); if (!opt_B) { |