PERFORCE change 175889 for review

Garrett Cooper gcooper at FreeBSD.org
Sun Mar 21 02:24:21 UTC 2010


http://p4web.freebsd.org/chv.cgi?CH=175889

Change 175889 by gcooper at gcooper-bayonetta on 2010/03/21 02:23:20

	Replace vsystem'ed call to mkdir(1) in add/futil.c with mkdir(1). See bin/144921 for more details.

Affected files ...

.. //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/usr.sbin/pkg_install/add/futil.c#2 edit

Differences ...

==== //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/usr.sbin/pkg_install/add/futil.c#2 (text+ko) ====

@@ -50,7 +50,7 @@
 	    }
 	}
 	else {
-	    if (vsystem("/bin/mkdir %s", dir)) {
+	    if (mkdir(dir, 0700) < 0) {
 		if (cp2)
 		    *cp2 = '/';
 		return FAIL;


More information about the p4-projects mailing list