diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2019-12-24 15:21:09 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-11 11:06:22 +0000 |
commit | 0d53c40c3660dced1241980998284f58cf680bc9 (patch) | |
tree | 1b93e900cc0fc4db44c575970f0bb1bb99db5089 /meta/recipes-devtools/pseudo/pseudo_git.bb | |
parent | 5a9198f5255d69a69fc351f6e2f5ccd813f343ed (diff) | |
download | poky-0d53c40c3660dced1241980998284f58cf680bc9.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: c251e753486dae9b460df315a6d19d6c81098ecb)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 319bbf66e03377adf2db7efa93ef578e3460eb38)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/pseudo/pseudo_git.bb')
-rw-r--r-- | meta/recipes-devtools/pseudo/pseudo_git.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/pseudo/pseudo_git.bb b/meta/recipes-devtools/pseudo/pseudo_git.bb index 1f2df4a427..7c75293ef1 100644 --- a/meta/recipes-devtools/pseudo/pseudo_git.bb +++ b/meta/recipes-devtools/pseudo/pseudo_git.bb | |||
@@ -8,6 +8,7 @@ SRC_URI = "git://git.yoctoproject.org/pseudo \ | |||
8 | file://toomanyfiles.patch \ | 8 | file://toomanyfiles.patch \ |
9 | file://0001-maketables-wrappers-use-Python-3.patch \ | 9 | file://0001-maketables-wrappers-use-Python-3.patch \ |
10 | file://0001-Add-statx.patch \ | 10 | file://0001-Add-statx.patch \ |
11 | file://0001-realpath.c-Remove-trailing-slashes.patch \ | ||
11 | " | 12 | " |
12 | 13 | ||
13 | SRCREV = "060058bb29f70b244e685b3c704eb0641b736f73" | 14 | SRCREV = "060058bb29f70b244e685b3c704eb0641b736f73" |