Fix wrong initialization of "cmd" for calling the jail/unjail ioctl.

Reviewed by:	pjd@, delphij@
Approved by:	re (kib)
MFC after:	3 days
This commit is contained in:
Martin Matuska 2011-07-30 17:44:06 +00:00
parent b8596ed3ac
commit 3036062f0c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=224525

View File

@ -4289,7 +4289,8 @@ zfs_jail(zfs_handle_t *zhp, int jailid, int attach)
libzfs_handle_t *hdl = zhp->zfs_hdl;
zfs_cmd_t zc = { 0 };
char errbuf[1024];
int cmd, ret;
unsigned long cmd;
int ret;
if (attach) {
(void) snprintf(errbuf, sizeof (errbuf),