1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-20 21:08:06 +01:00

Merged with r265 of mainline 1.6, providing PyLintish fixes

This commit is contained in:
Andrew Psaltis
2009-01-31 02:13:18 -05:00
12 changed files with 38 additions and 41 deletions

View File

@@ -211,13 +211,13 @@ def ParseEncryption(network):
# Write the data to the files then chmod them so they can't be read
# by normal users.
file = open(wpath.networks + network["bssid"].replace(":", "").lower(), "w")
f = open(wpath.networks + network["bssid"].replace(":", "").lower(), "w")
os.chmod(wpath.networks + network["bssid"].replace(":", "").lower(), 0600)
os.chown(wpath.networks + network["bssid"].replace(":", "").lower(), 0, 0)
# We could do this above, but we'd like to read protect
# them before we write, so that it can't be read.
file.write(z)
file.close()
f.write(z)
f.close()
def LoadEncryptionMethods():
""" Load encryption methods from configuration files