]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r295844:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 7 Mar 2016 07:46:17 +0000 (07:46 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 7 Mar 2016 07:46:17 +0000 (07:46 +0000)
commitfa52dfab6c98bb07cf7ab8fa4909c01c07cdb837
tree26df5df7711a755d89f3cb5d550e94757a05f933
parentfe867aa714b7efe586097cfd5c592c65da5c4af5
MFC r295844:

Fix "invalid type '(null)'" usage messages in zfs(8) and zpool(8).

Currently, zfs(8) and zpool(8) print "invalid type '(null)'" or similar
messages, if you pass in invalid types, sources or column names for "zfs
get", "zfs list" and "zpool get".  This is because the commands use
getsubopt(3), and in case of failure, they print 'value', which is NULL
when sub options don't match.

They should print 'suboptarg' instead, which is the documented way to
get at the non-matching sub option value.

Reviewed by: smh
Differential Revision: https://reviews.freebsd.org/D5365

git-svn-id: svn://svn.freebsd.org/base/stable/10@296436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
cddl/contrib/opensolaris/cmd/zpool/zpool_main.c