svn commit: r264385 - head/sys/kern

Bryan Drewery bdrewery at FreeBSD.org
Sat Apr 12 21:39:18 UTC 2014


Author: bdrewery
Date: Sat Apr 12 21:39:17 2014
New Revision: 264385
URL: http://svnweb.freebsd.org/changeset/base/264385

Log:
  Use proper MFSNAMELEN for fs type.
  
  MFC after:	2 weeks
  Reviewed by:	rodrigc
  Also spotted by:ambrisko

Modified:
  head/sys/kern/vfs_mount.c

Modified: head/sys/kern/vfs_mount.c
==============================================================================
--- head/sys/kern/vfs_mount.c	Sat Apr 12 21:04:53 2014	(r264384)
+++ head/sys/kern/vfs_mount.c	Sat Apr 12 21:39:17 2014	(r264385)
@@ -748,7 +748,7 @@ sys_mount(td, uap)
 		return (EOPNOTSUPP);
 	}
 
-	ma = mount_argsu(ma, "fstype", uap->type, MNAMELEN);
+	ma = mount_argsu(ma, "fstype", uap->type, MFSNAMELEN);
 	ma = mount_argsu(ma, "fspath", uap->path, MNAMELEN);
 	ma = mount_argb(ma, flags & MNT_RDONLY, "noro");
 	ma = mount_argb(ma, !(flags & MNT_NOSUID), "nosuid");


More information about the svn-src-all mailing list