]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r295844:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 24 Feb 2016 07:53:57 +0000 (07:53 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 24 Feb 2016 07:53:57 +0000 (07:53 +0000)
commiteae8b16d81c896ec49f2ff9f8a5078af4d4d09e9
treeb99c9efd573ef3d2198b914c214786e87a803383
parentd7cce6105e67c33eedbd91687448ab215d4462d6
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/9@295963 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
cddl/contrib/opensolaris/cmd/zpool/zpool_main.c