From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH OSSTEST 1/2] uboot: use "readlink -f" Date: Tue, 24 Mar 2015 12:23:22 +0000 Message-ID: <1427199802.21742.384.camel@citrix.com> References: <1427197552-29042-1-git-send-email-wei.liu2@citrix.com> <1427197552-29042-2-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YaNrj-0003Au-QY for xen-devel@lists.xenproject.org; Tue, 24 Mar 2015 12:23:27 +0000 In-Reply-To: <1427197552-29042-2-git-send-email-wei.liu2@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: xen-devel@lists.xenproject.org, ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Tue, 2015-03-24 at 11:45 +0000, Wei Liu wrote: > If the path is not a symlink, readlink by default returns empty string. > Use "-f" to always return canonical path. This fixes the problem that > xenpolicy file not getting loaded (because it is not a symlink). > > Also change another spot that calls readlink to get xen binary path in > case in the future we decide to not use symlink. > > Signed-off-by: Wei Liu Acked-by: Ian Campbell