[gnome-shell] Remove use of octal constants



commit 734d93087ae8b28780752ac7dc2dda7dc7cbf5e5
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Thu Sep 30 12:41:20 2010 -0400

    Remove use of octal constants
    
    New spidermonkey warns on octal constants, so we can't
    even use them for file permissions. Switch to hex plus a comment.

 js/ui/telepathyClient.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js
index f5c6663..9a4aaf9 100644
--- a/js/ui/telepathyClient.js
+++ b/js/ui/telepathyClient.js
@@ -211,7 +211,7 @@ ContactManager.prototype = {
             throw new Error('Could not parse connection path ' + connPath);
 
         info.cacheDir = this._cacheDir + '/' + match[1];
-        GLib.mkdir_with_parents(info.cacheDir, 0700);
+        GLib.mkdir_with_parents(info.cacheDir, 0x1c0); // 0x1c0 = octal 0700
 
         // info.names[handle] is @handle's real name
         // info.tokens[handle] is the token for @handle's avatar



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]