URI: 
       tMerge pull request #2320 from da2x/bugfixes - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit e0635f5d08497f9bd467ac855fc736435b1a9de8
   DIR parent e0faf90a5a8d2dd72b92c53c57d715f1a69f0325
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Tue, 10 Oct 2017 20:11:26 +0200
       
       Merge pull request #2320 from da2x/bugfixes
       
       Tighten directory permissions
       Diffstat:
         M lib/network.py                      |       1 +
         M lib/simple_config.py                |       2 ++
       
       2 files changed, 3 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/lib/network.py b/lib/network.py
       t@@ -205,6 +205,7 @@ class Network(util.DaemonThread):
                dir_path = os.path.join( self.config.path, 'certs')
                if not os.path.exists(dir_path):
                    os.mkdir(dir_path)
       +            os.chmod(dir_path, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
        
                # subscriptions and requests
                self.subscribed_addresses = set()
   DIR diff --git a/lib/simple_config.py b/lib/simple_config.py
       t@@ -93,6 +93,7 @@ class SimpleConfig(PrintError):
                    if os.path.islink(path):
                        raise BaseException('Dangling link: ' + path)
                    os.mkdir(path)
       +            os.chmod(path, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
        
                self.print_error("electrum directory", path)
                return path
       t@@ -167,6 +168,7 @@ class SimpleConfig(PrintError):
                    if os.path.islink(dirpath):
                        raise BaseException('Dangling link: ' + dirpath)
                    os.mkdir(dirpath)
       +            os.chmod(dirpath, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
        
                new_path = os.path.join(self.path, "wallets", "default_wallet")