Date: Wed, 11 Jul 2007 14:04:09 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 123324 for review Message-ID: <200707111404.l6BE49sB020033@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) ||
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707111404.l6BE49sB020033>