PERFORCE change 128043 for review
Marko Zec
zec at FreeBSD.org
Wed Oct 24 19:36:11 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=128043
Change 128043 by zec at zec_tpx32 on 2007/10/25 02:35:23
Guesswork around hierarchichal vimage naming continues...
Affected files ...
.. //depot/projects/vimage/src/sys/kern/kern_vimage.c#53 edit
Differences ...
==== //depot/projects/vimage/src/sys/kern/kern_vimage.c#53 (text+ko) ====
@@ -466,7 +466,8 @@
if (namelen == 0)
return(NULL);
LIST_FOREACH(vip, &top->vi_child_head, vi_sibling)
- if (strcmp(name, vip->vi_name) == 0) {
+ if (strlen(vip->vi_name) == namelen &&
+ strncmp(name, vip->vi_name, namelen) == 0) {
if (next_name != NULL)
return(vimage_by_name(vip, next_name));
else
More information about the p4-projects
mailing list