summaryrefslogtreecommitdiffstats
path: root/sbin/newfs_msdos
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2014-08-16 01:06:23 +0000
committerpfg <pfg@FreeBSD.org>2014-08-16 01:06:23 +0000
commit2e2e6c6d48e286cd41b478b8d163e15a56a37742 (patch)
tree20916175072c61d774305eb2815edd6e7cb481b5 /sbin/newfs_msdos
parent885e369762d299d1edfc3b662fc0dac1afcc6a38 (diff)
downloadFreeBSD-src-2e2e6c6d48e286cd41b478b8d163e15a56a37742.zip
FreeBSD-src-2e2e6c6d48e286cd41b478b8d163e15a56a37742.tar.gz
MFC r269953:
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)
Diffstat (limited to 'sbin/newfs_msdos')
-rw-r--r--sbin/newfs_msdos/newfs_msdos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c
index 217b720..69b92d0 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) {
OpenPOWER on IntegriCloud