PERFORCE change 128984 for review

Xin LI delphij at FreeBSD.org
Mon Nov 12 11:04:07 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=128984

Change 128984 by delphij at charlie on 2007/11/12 19:03:37

	IFC tmpfs stack overflow fix.
	
	Obtained from:	des

Affected files ...

.. //depot/projects/delphij_fork/sys/fs/tmpfs/tmpfs_vfsops.c#8 integrate

Differences ...

==== //depot/projects/delphij_fork/sys/fs/tmpfs/tmpfs_vfsops.c#8 (text+ko) ====

@@ -48,7 +48,7 @@
  * allocate and release resources.
  */
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/sys/fs/tmpfs/tmpfs_vfsops.c,v 1.11 2007/10/04 17:11:48 delphij Exp $");
+__FBSDID("$FreeBSD: src/sys/fs/tmpfs/tmpfs_vfsops.c,v 1.12 2007/11/12 18:57:33 delphij Exp $");
 
 #include <sys/param.h>
 #include <sys/limits.h>
@@ -231,7 +231,7 @@
 	    vfs_scanopt(mp->mnt_optnew, "uid", "%d", &root_uid) != 1)
 		root_uid = va.va_uid;
 	if (mp->mnt_cred->cr_ruid != 0 ||
-	    vfs_scanopt(mp->mnt_optnew, "mode", "%o", &root_mode) != 1)
+	    vfs_scanopt(mp->mnt_optnew, "mode", "%ho", &root_mode) != 1)
 		root_mode = va.va_mode;
 	if(vfs_scanopt(mp->mnt_optnew, "inodes", "%d", &nodes_max) != 1)
 		nodes_max = 0;


More information about the p4-projects mailing list