Bug 931586 - Use FileUtils.PERMS_DIRECTORY instead of 0755 in nsUpdateService.js. r=bbondy
authorRobert Strong <robert.bugzilla@gmail.com>
Sun, 27 Oct 2013 19:27:21 -0700
changeset 167209 f4b1b234f20df00ec7328bb25549fee2e1a6c2d9
parent 167203 3685c303b72343849658ef2d22c3535648223a6c
child 167210 4646259ab62d9afb1aca0d51aabf1c55b48388e3
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbondy
bugs931586
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 931586 - Use FileUtils.PERMS_DIRECTORY instead of 0755 in nsUpdateService.js. r=bbondy
toolkit/mozapps/update/nsUpdateService.js
--- a/toolkit/mozapps/update/nsUpdateService.js
+++ b/toolkit/mozapps/update/nsUpdateService.js
@@ -964,17 +964,17 @@ function getUpdatesDirInApplyToDir() {
 #endif
   dir.append(UPDATED_DIR);
 #ifdef XP_MACOSX
   dir.append("Contents");
   dir.append("MacOS");
 #endif
   dir.append(DIR_UPDATES);
   if (!dir.exists()) {
-    dir.create(Ci.nsILocalFile.DIRECTORY_TYPE, 0755);
+    dir.create(Ci.nsILocalFile.DIRECTORY_TYPE, FileUtils.PERMS_DIRECTORY);
   }
   return dir;
 }
 
 /**
  * Reads the update state from the update.status file in the specified
  * directory.
  * @param   dir