Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: cdent/tsapp
base: 6586456b5f
...
head fork: cdent/tsapp
compare: fbc509b378
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Jul 30, 2012
@cdent Set the umask when writing the .tsapp
We don't want it be read by just anybody.
ad1e263
@cdent release 0.1.2 fbc509b
Showing with 3 additions and 1 deletion.
  1. +3 −1 tsapp/__init__.py
View
4 tsapp/__init__.py
@@ -10,7 +10,7 @@
import sys
-__version__ = '0.1.1'
+__version__ = '0.1.2'
def error_exit(code, message=""):
@@ -36,6 +36,7 @@ def write_config(new_data):
existing_data = {}
existing_data.update(new_data)
+ def_umask = os.umask(0077)
config_file = open('./.tsapp', 'w')
for key, value in existing_data.iteritems():
@@ -44,6 +45,7 @@ def write_config(new_data):
config_file.write('%s:%s\n' % (key, value))
config_file.close()
+ os.umask(def_umask)
def read_config():

No commit comments for this range

Something went wrong with that request. Please try again.