diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-01-13 18:50:32 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-01-13 18:50:32 +0000 |
commit | 94c9c5fcb04342126d7430bc51913e6b2ca444cf (patch) | |
tree | 4c1333655aa516e43e63fe56bb03bc340c917315 /firewall.py | |
parent | 87b31f29ba4f2e2c076808760cb3c35492ee4670 (diff) | |
download | anaconda-94c9c5fcb04342126d7430bc51913e6b2ca444cf.tar.gz anaconda-94c9c5fcb04342126d7430bc51913e6b2ca444cf.tar.xz anaconda-94c9c5fcb04342126d7430bc51913e6b2ca444cf.zip |
opening the file to *write* is helpful
Diffstat (limited to 'firewall.py')
-rw-r--r-- | firewall.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firewall.py b/firewall.py index dae3b0705..202227016 100644 --- a/firewall.py +++ b/firewall.py @@ -100,10 +100,11 @@ class Firewall: log ("lokkit run failed: %s", msg) else: f = open(instPath + - '/etc/sysconfig/redhat-config-securitylevel', 'r') + '/etc/sysconfig/redhat-config-securitylevel', 'w') f.write("# redhat-config-securitylevel config written out by anaconda\n\n") for arg in args[3:]: f.write("%s\n" %(arg,)) + f.close() else: # remove /etc/sysconfig/ipchains |