diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-01-14 12:33:11 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-01-14 12:33:11 +0000 |
commit | 356525b2ab1d80a4df717108e90549a21748572f (patch) | |
tree | 8fb39dc2ce8447420c5054f54db800981ba4920c | |
parent | 24acf3686de17cc10018c3892822314f9eecc240 (diff) | |
download | msec-356525b2ab1d80a4df717108e90549a21748572f.tar msec-356525b2ab1d80a4df717108e90549a21748572f.tar.gz msec-356525b2ab1d80a4df717108e90549a21748572f.tar.bz2 msec-356525b2ab1d80a4df717108e90549a21748572f.tar.xz msec-356525b2ab1d80a4df717108e90549a21748572f.zip |
Making --enforce work with msecperms.
-rwxr-xr-x | src/msec/libmsec.py | 1 | ||||
-rwxr-xr-x | src/msec/msecperms.py | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py index 77ba312..bb2b3ba 100755 --- a/src/msec/libmsec.py +++ b/src/msec/libmsec.py @@ -1854,7 +1854,6 @@ class PERMS: else: self.log.info(config.MODIFICATIONS_NOT_FOUND) - for file in self.files: newperm, newuser, newgroup, force = self.files[file] # are we in enforcing mode? diff --git a/src/msec/msecperms.py b/src/msec/msecperms.py index e6bbe20..b86ef26 100755 --- a/src/msec/msecperms.py +++ b/src/msec/msecperms.py @@ -145,7 +145,7 @@ if __name__ == "__main__": changed_files = perm.check_perms(permconf) # writing back changes - perm.commit(really_commit=commit, enforce=force_level) + perm.commit(really_commit=commit, enforce=enforce) # saving updated config if force_level and commit: if not permconf.save(): |