Bug 1073956 Use 0o notation for octal literals in DownloadPaths.jsm r=netzen
authorISHIKAWA, Chiaki <ishikawa@yk.rim.or.jp>
Wed, 08 Oct 2014 22:43:47 +0800
changeset 224792 e0b3b8c184243a3e849d01bbac8b28eee35c0660
parent 224791 aea1690f59476d4f1e964e0febed6041dff66e34
child 224793 d09b8e31e31912a590acbd55c76558d84a69a5f7
push id7107
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 17:43:31 +0000
treeherdermozilla-aurora@b4b34e0acc75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnetzen
bugs1073956
milestone35.0a1
Bug 1073956 Use 0o notation for octal literals in DownloadPaths.jsm r=netzen
toolkit/mozapps/downloads/DownloadPaths.jsm
--- a/toolkit/mozapps/downloads/DownloadPaths.jsm
+++ b/toolkit/mozapps/downloads/DownloadPaths.jsm
@@ -53,17 +53,17 @@ this.DownloadPaths = {
       curFile.leafName = base + "(" + i + ")" + ext;
     }
     // At this point we hand off control to createUnique, which will create the
     // file with the name we chose, if it is valid. If not, createUnique will
     // attempt to modify it again, for example it will shorten very long names
     // that can't be created on some platforms, and for which a normal call to
     // nsIFile.create would result in NS_ERROR_FILE_NOT_FOUND. This can result
     // very rarely in strange names like "base(9999).tar-1.gz" or "ba-1.gz".
-    curFile.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0644);
+    curFile.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0o644);
     return curFile;
   },
 
   /**
    * Separates the base name from the extension in a file name, recognizing some
    *  double extensions like ".tar.gz".
    *
    * @param aLeafName