Re: [Xen-devel] [PATCH OSSTEST 1/2] uboot: use "readlink -f"

2015-03-27 Thread Ian Campbell
On Fri, 2015-03-27 at 17:31 +0100, Atom2 wrote: > Am 27.03.15 um 10:28 schrieb Ian Campbell: > > Unfortunately this has unexpectedly made things worse. See: > > http://www.chiark.greenend.org.uk/~xensrcts/logs/36757/ > > > > The issue is that readlink -f returns the full absolute path, so given > >

Re: [Xen-devel] [PATCH OSSTEST 1/2] uboot: use "readlink -f"

2015-03-27 Thread Atom2
Am 27.03.15 um 10:28 schrieb Ian Campbell: Unfortunately this has unexpectedly made things worse. See: http://www.chiark.greenend.org.uk/~xensrcts/logs/36757/ The issue is that readlink -f returns the full absolute path, so given $ ls /boot/xen* xen -> xen-X.Y xen-X.Y Then: $

Re: [Xen-devel] [PATCH OSSTEST 1/2] uboot: use "readlink -f"

2015-03-27 Thread Ian Campbell
On Tue, 2015-03-24 at 11:45 +, 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 c

Re: [Xen-devel] [PATCH OSSTEST 1/2] uboot: use "readlink -f"

2015-03-24 Thread Ian Campbell
On Tue, 2015-03-24 at 11:45 +, 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 c

[Xen-devel] [PATCH OSSTEST 1/2] uboot: use "readlink -f"

2015-03-24 Thread Wei Liu
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 w