PERFORCE change 123324 for review
Marko Zec
zec at FreeBSD.org
Wed Jul 11 14:04:10 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=123324
Change 123324 by zec at 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) ||
More information about the p4-projects
mailing list