svn commit: r269953 - head/sbin/newfs_msdos

Pedro F. Giffuni pfg at FreeBSD.org
Wed Aug 13 21:18:31 UTC 2014


Author: pfg
Date: Wed Aug 13 21:18:31 2014
New Revision: 269953
URL: http://svnweb.freebsd.org/changeset/base/269953

Log:
  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

Modified:
  head/sbin/newfs_msdos/newfs_msdos.c

Modified: head/sbin/newfs_msdos/newfs_msdos.c
==============================================================================
--- head/sbin/newfs_msdos/newfs_msdos.c	Wed Aug 13 19:55:14 2014	(r269952)
+++ head/sbin/newfs_msdos/newfs_msdos.c	Wed Aug 13 21:18:31 2014	(r269953)
@@ -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) {


More information about the svn-src-all mailing list