diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2019-12-24 15:21:09 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-30 08:47:09 +0000 |
commit | 1bbc547a5ed545c1067e6b108877c6acc34437b6 (patch) | |
tree | 9215dfbd1596104277a7790170bec119df18ddac /README.OE-Core | |
parent | 0692b3877f76e8a4dcad331342de03f3e3e51012 (diff) | |
download | poky-1bbc547a5ed545c1067e6b108877c6acc34437b6.tar.gz |
pseudo: Make realpath() remove trailing slashes
Linux system's realpath() remove trailing slashes, but pseudo's doesn't, need
make them identical.
E.g., the following code (rel.c) prints '/tmp' with system's realpath, but
pseudo's realpath prints '/tmp/':
#include <stdio.h>
#include <limits.h>
#include <stdlib.h>
int main() {
char out[PATH_MAX];
printf("%s\n", realpath("/tmp/", out));
return 0;
}
$ bitbake base-passwd -cdevshell # For pseudo env
$ gcc rel.c
$ ./a.out
/tmp/ (but should be /tmp)
This patch fixes the problem.
(From OE-Core rev: 319bbf66e03377adf2db7efa93ef578e3460eb38)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'README.OE-Core')
0 files changed, 0 insertions, 0 deletions