diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-09-02 14:45:52 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-09-02 14:45:52 +0000 |
commit | 5df48ec7695e3e3ee17aae5782223e8396487c64 (patch) | |
tree | 73fc1a635f663aaa93af2bed0f47b4538a3af3ae /usr.sbin/relayd/check_script.c | |
parent | 99ad30b370f86389430ffeb784ef6788f371e7db (diff) |
Split "struct relayd" into two structs: "struct relayd" and "struct
relayd_config". This way we can send all the relevant global
configuration to the children, not just the flags and the opts.
With input from and
OK claudio@ benno@
Diffstat (limited to 'usr.sbin/relayd/check_script.c')
-rw-r--r-- | usr.sbin/relayd/check_script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/check_script.c b/usr.sbin/relayd/check_script.c index c9990e0add0..9bb494c7275 100644 --- a/usr.sbin/relayd/check_script.c +++ b/usr.sbin/relayd/check_script.c @@ -1,4 +1,4 @@ -/* $OpenBSD: check_script.c,v 1.19 2015/12/02 13:41:27 reyk Exp $ */ +/* $OpenBSD: check_script.c,v 1.20 2016/09/02 14:45:51 reyk Exp $ */ /* * Copyright (c) 2007 - 2014 Reyk Floeter <reyk@openbsd.org> @@ -95,7 +95,7 @@ script_exec(struct relayd *env, struct ctl_script *scr) const char *file, *arg; struct passwd *pw; - if ((env->sc_flags & F_SCRIPT) == 0) { + if ((env->sc_conf.flags & F_SCRIPT) == 0) { log_warnx("%s: script disabled", __func__); return (-1); } |