From: Ian Jackson Subject: Re: libxl: build fix Date: Tue, 9 Nov 2010 17:03:06 +0000 Message-ID: <19673.32458.60148.458206@mariner.uk.xensource.com> References: <201011051608.47100.Christoph.Egger@amd.com> <201011091239.51488.Christoph.Egger@amd.com> <19673.13957.616191.466954@mariner.uk.xensource.com> <201011091358.46837.Christoph.Egger@amd.com> <4CD94C29.5010707@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4CD94C29.5010707@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Haxby Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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.