]> granicus.if.org Git - zfs/commit
Don't modify argv[] in user tools
authorDeHackEd <DeHackEd@users.noreply.github.com>
Mon, 20 Aug 2018 16:55:18 +0000 (12:55 -0400)
committerTony Hutter <hutter2@llnl.gov>
Fri, 6 Jul 2018 09:46:51 +0000 (02:46 -0700)
commit778290d5bcc33ec0b6164766049cdb9ad06f7f20
treecfdf3e1c037b281ff47e769d98d3ea38343e597b
parent98bc8e0b236174e2f9b877006832b053212ffaca
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
cmd/zfs/zfs_main.c
cmd/zpool/zpool_main.c