svn commit: r270034 - stable/10/sbin/newfs_msdos

Pedro F. Giffuni pfg at
Sat Aug 16 01:06:24 UTC 2014

Author: pfg
Date: Sat Aug 16 01:06:23 2014
New Revision: 270034

  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)

Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sbin/newfs_msdos/newfs_msdos.c
--- stable/10/sbin/newfs_msdos/newfs_msdos.c	Sat Aug 16 01:03:51 2014	(r270033)
+++ stable/10/sbin/newfs_msdos/newfs_msdos.c	Sat Aug 16 01:06:23 2014	(r270034)
@@ -689,7 +689,7 @@ main(int argc, char *argv[])
 			 ((u_int)tm->tm_hour << 8 |
 		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) {

More information about the svn-src-all mailing list