From 64a71200e837eff0a8b5c00dc6f908cb99708275 Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Wed, 8 Oct 2003 21:15:14 +0000 Subject: 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. --- share/shadow.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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(): -- cgit v1.2.1