HomeFreeBSD

Don't modify argv[] in user tools

Description

Don't modify argv[] in user tools

argv[] gets modified during string parsing for input arguments. This
is reflected in the live process listing. Don't do that.

Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: DHE <git@dehacked.net>
Closes #7760

Details

Provenance
DeHackEd <DeHackEd@users.noreply.github.com>Authored on Aug 20 2018, 4:55 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 20 2018, 4:55 PM
Parents
rGa448a2557ec4: Introduce read/write kstats per dataset
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGedc05fdb3479: Don't modify argv[] in user tools (authored by DeHackEd <DeHackEd@users.noreply.github.com>).Aug 20 2018, 4:55 PM