From owner-p4-projects@FreeBSD.ORG Wed Jul 11 14:04:10 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id F144D16A46B; Wed, 11 Jul 2007 14:04:09 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7FF2E16A468 for ; Wed, 11 Jul 2007 14:04:09 +0000 (UTC) (envelope-from zec@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 7147513C4E5 for ; Wed, 11 Jul 2007 14:04:09 +0000 (UTC) (envelope-from zec@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l6BE49oE020038 for ; Wed, 11 Jul 2007 14:04:09 GMT (envelope-from zec@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l6BE49sB020033 for perforce@freebsd.org; Wed, 11 Jul 2007 14:04:09 GMT (envelope-from zec@FreeBSD.org) Date: Wed, 11 Jul 2007 14:04:09 GMT Message-Id: <200707111404.l6BE49sB020033@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to zec@FreeBSD.org using -f From: Marko Zec To: Perforce Change Reviews Cc: Subject: PERFORCE change 123324 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2007 14:04:10 -0000 http://perforce.freebsd.org/chv.cgi?CH=123324 Change 123324 by zec@zec_tca51 on 2007/07/11 14:03:40 Specify the requested action before doing a SIOCGPVIMAGE ioctl call. This becomes necessary after the last change to src/sys/kern/kern_vimage.c. This whole API is a huge kludge... Affected files ... .. //depot/projects/vimage/src/usr.sbin/vimage/vimage.c#2 edit Differences ... ==== //depot/projects/vimage/src/usr.sbin/vimage/vimage.c#2 (text+ko) ==== @@ -262,6 +262,7 @@ strcpy(vi_req.vi_name, argv[1]); if (ioctl(s, SIOCSPVIMAGE, (caddr_t)&vi_req) < 0) goto abort; + vi_req.req_action = VI_GET; if (ioctl(s, SIOCGPVIMAGE, (caddr_t)&vi_req) < 0) goto abort; if (strlen(vi_req.vi_chroot) && (chdir(vi_req.vi_chroot) ||