diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-04-01 09:31:27 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-04-01 09:31:27 +0000 |
commit | d001e08133763427fded92847f3366d53811abca (patch) | |
tree | e855c4367d1ad202400bd7544cd10af42ea95b68 /lib/extra_opts.h | |
parent | 8a7b252eeb78a2209ebc5cb28739772c9bdaade0 (diff) | |
download | monitoring-plugins-d001e08133763427fded92847f3366d53811abca.tar.gz |
np_extra_opts now retain pointers from argv so that plugins can still overwrite sensitive options
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1971 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/extra_opts.h')
-rw-r--r-- | lib/extra_opts.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/extra_opts.h b/lib/extra_opts.h index 8ce09036..0cb47fb1 100644 --- a/lib/extra_opts.h +++ b/lib/extra_opts.h @@ -11,8 +11,8 @@ * ini-procesed arguments always come first (in the ord of --extra-opts * arguments). If no --extra-opts arguments are provided or returned nothing * it returns **argv otherwise the new array is returned. --extra-opts are - * always removed from **argv and the new array and all its elements can be - * freed with free(); + * always removed from **argv. The original pointers from **argv are kept in + * the new array to preserve ability to overwrite arguments in processlist. */ char **np_extra_opts(int *argc, char **argv, const char *plugin_name); |