[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.