diff options
author | Frederic Lepied <flepied@mandriva.com> | 2003-10-08 21:15:14 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2003-10-08 21:15:14 +0000 |
commit | 64a71200e837eff0a8b5c00dc6f908cb99708275 (patch) | |
tree | d37fdb485e7bfecff24fbd16ff326d41c0dc08c5 /share | |
parent | 7ebe756388975d74f23ddb09bf3355cba039437f (diff) | |
download | msec-64a71200e837eff0a8b5c00dc6f908cb99708275.tar msec-64a71200e837eff0a8b5c00dc6f908cb99708275.tar.gz msec-64a71200e837eff0a8b5c00dc6f908cb99708275.tar.bz2 msec-64a71200e837eff0a8b5c00dc6f908cb99708275.tar.xz msec-64a71200e837eff0a8b5c00dc6f908cb99708275.zip |
Added local_config to say that the calls are now coming from the config file.
Call force_val in indirect to store that the arguments of the function need
to be used even if the security is lowered.
Diffstat (limited to 'share')
-rwxr-xr-x | share/shadow.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/share/shadow.py b/share/shadow.py index 6418b0c..9f446fd 100755 --- a/share/shadow.py +++ b/share/shadow.py @@ -42,12 +42,20 @@ ignore=-1 FAKE = {} +_force = 0 + +def local_config(val): + global _force + _force = val + def indirect(name, func, type, args): if type == 1: key = (name, args[0]) else: key = name FAKE[key] = (func, args) + if _force: + force_val(name) def commit_changes(): for f in FAKE.values(): |