From: Ian Campbell Subject: [PATCH OSSTEST v2 1/2] uboot: do not use readlink on xsm policy Date: Fri, 27 Mar 2015 10:46:49 +0000 Message-ID: <1427453210-25730-1-git-send-email-ian.campbell@citrix.com> References: <1427448519.13935.73.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1427448519.13935.73.camel@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: ian.jackson@eu.citrix.com, wei.liu2@citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org The policy is not a symlink, so readlink will return nothing. We cannot use readlink -f because that will return an absolute path and we need a path relative to the filesystem root (in this case /boot). Keep flaskpolicy=$flaskpolicy as a shell variable rather than unescaping the uses (so they are interpreted by Perl) to easy any future changes. Signed-off-by: Ian Campbell --- Replaces: uboot: use "readlink -f" --- Osstest/Debian.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 6784024..3a0993b 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -162,7 +162,7 @@ sub setupboot_uboot ($$$$) { $flask_commands = <