[sysadmin-bin] 2nd arg should also contain the command itself
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] 2nd arg should also contain the command itself
- Date: Mon, 16 Apr 2018 13:18:54 +0000 (UTC)
commit 5a0a0e78f89d24d4e1e79c5952c7840d86a2a5b8
Author: Andrea Veri <averi redhat com>
Date: Mon Apr 16 15:18:41 2018 +0200
2nd arg should also contain the command itself
run-nagios-command | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/run-nagios-command b/run-nagios-command
index c40b74a..1af16f6 100755
--- a/run-nagios-command
+++ b/run-nagios-command
@@ -16,7 +16,7 @@ def run_nagios_command(args):
cmd = list()
cmd.append('/etc/nagios/eventhandlers/%s' % args[1])
cmd.extend(args[2:])
- os.execv(cmd[0], cmd[1:])
+ os.execv(cmd[0], cmd)
else:
print >>sys.stderr, 'Command not authorized'
sys.exit(1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]