diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-04-29 18:52:22 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-04-29 18:52:22 -0400 |
commit | e92e5316b6452be27f6e4d6a10629562fbe160ee (patch) | |
tree | 9e2ef36db991bc8967ef91af3a70c0cc772d3da3 /config/sudo | |
parent | f8efb383a351681cbffe2a4a873d3635b108d2b3 (diff) | |
parent | 51e511281754e3b9ae3c73b3df67b74fc11ca3c0 (diff) | |
download | pfsense-packages-e92e5316b6452be27f6e4d6a10629562fbe160ee.tar.gz pfsense-packages-e92e5316b6452be27f6e4d6a10629562fbe160ee.tar.bz2 pfsense-packages-e92e5316b6452be27f6e4d6a10629562fbe160ee.zip |
Merge branch 'master' of https://github.com/pfsense/pfsense-packages
Diffstat (limited to 'config/sudo')
-rw-r--r-- | config/sudo/sudo.inc | 2 | ||||
-rw-r--r-- | config/sudo/sudo.xml | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/config/sudo/sudo.inc b/config/sudo/sudo.inc index 5ffa14c3..68cf4a00 100644 --- a/config/sudo/sudo.inc +++ b/config/sudo/sudo.inc @@ -165,7 +165,7 @@ function sudo_get_users($list_all_user = false) { /* Make sure commands passed in are valid executables to help ensure a valid sudoers file and expected behavior. This also forces the user to give full paths to executables, which they should be doing anyhow. */ -function sudo_validate_commands($input_errors) { +function sudo_validate_commands(&$input_errors) { $idx = 0; while(isset($_POST["cmdlist{$idx}"])) { $commands = $_POST["cmdlist" . $idx++]; diff --git a/config/sudo/sudo.xml b/config/sudo/sudo.xml index 16fc272b..2fccab24 100644 --- a/config/sudo/sudo.xml +++ b/config/sudo/sudo.xml @@ -3,7 +3,7 @@ <description>Sudo Command Control</description> <requirements>None</requirements> <name>sudo</name> - <version>0.2</version> + <version>0.2.1</version> <title>Sudo - Shell Command Privilege Delegation Utility</title> <include_file>/usr/local/pkg/sudo.inc</include_file> <menu> @@ -83,7 +83,7 @@ User permission definitions for allowing the use of sudo by shell users to run c </custom_php_resync_config_command> <custom_php_validation_command> <![CDATA[ - sudo_validate_commands(&$input_errors); + sudo_validate_commands($input_errors); ]]> </custom_php_validation_command> </packagegui> |