Index: functions-post.php
===================================================================
--- functions-post.php	(revision 3373)
+++ functions-post.php	(working copy)
@@ -846,7 +846,7 @@
 	
 	// Give the new dirs the same perms as wp-content.
 	$stat = stat(ABSPATH . 'wp-content');
-	$dir_perms = $stat['mode'] & 0000777;  // Get the permission bits.
+	$dir_perms = $stat['mode'] & 0007777;  // Get the permission bits.
 
         // Make sure we have an uploads dir
         if ( ! file_exists( $path ) ) {

