WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] libxl: build fix

John Haxby writes ("Re: [Xen-devel] libxl: build fix"):
> No, it should be
> 
>      name = strrchr(filename, '/');
>      if (name)
>          name++;
>      else
>          name = filename;

As you say.

> In fact even that isn't right because basename(3) discards (or at least 
> ignores) trailing '/' characters.

In this particular case, there won't be any, because if there were
then opening the cpupool config file would fail.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>