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 209352 e0b3b8c184243a3e849d01bbac8b28eee35c0660
parent 209351 aea1690f59476d4f1e964e0febed6041dff66e34
child 209353 d09b8e31e31912a590acbd55c76558d84a69a5f7
push id50152
push userphilip.chee@gmail.com
push dateWed, 08 Oct 2014 14:45:56 +0000
treeherdermozilla-inbound@bc30d29aaa7d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnetzen
bugs1073956
milestone35.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 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