Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2011 17:44:06 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r224525 - head/cddl/contrib/opensolaris/lib/libzfs/common
Message-ID:  <201107301744.p6UHi6s3009407@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mm
Date: Sat Jul 30 17:44:06 2011
New Revision: 224525
URL: http://svn.freebsd.org/changeset/base/224525

Log:
  Fix wrong initialization of "cmd" for calling the jail/unjail ioctl.
  
  Reviewed by:	pjd@, delphij@
  Approved by:	re (kib)
  MFC after:	3 days

Modified:
  head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c

Modified: head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c
==============================================================================
--- head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c	Sat Jul 30 17:40:11 2011	(r224524)
+++ head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c	Sat Jul 30 17:44:06 2011	(r224525)
@@ -4289,7 +4289,8 @@ zfs_jail(zfs_handle_t *zhp, int jailid, 
 	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),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107301744.p6UHi6s3009407>