Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Aug 2011 11:33:20 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r224607 - stable/8/cddl/contrib/opensolaris/lib/libzfs/common
Message-ID:  <201108021133.p72BXKE8048476@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mm
Date: Tue Aug  2 11:33:19 2011
New Revision: 224607
URL: http://svn.freebsd.org/changeset/base/224607

Log:
  MFC r224525:
  Fix wrong initialization of "cmd" for calling the jail/unjail ioctl.
  
  Reviewed by:	pjd@, delphij@

Modified:
  stable/8/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c
Directory Properties:
  stable/8/cddl/contrib/opensolaris/   (props changed)

Modified: stable/8/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c
==============================================================================
--- stable/8/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c	Tue Aug  2 11:28:42 2011	(r224606)
+++ stable/8/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c	Tue Aug  2 11:33:19 2011	(r224607)
@@ -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?201108021133.p72BXKE8048476>