diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2019-11-25 19:09:53 +0800 |
---|---|---|
committer | Robert Yang <liezhi.yang@windriver.com> | 2019-12-24 15:15:38 +0800 |
commit | b763cef4b8957d8140800d46391150599ef56c55 (patch) | |
tree | 42ce2571cfbf1568451f29b8b27377bd63fc5967 /scripts/postinst-intercepts | |
parent | d6c62cc0305ab082e990041da104fedb5798e0e4 (diff) | |
download | openembedded-core-contrib-rbt/pseudo.tar.gz |
pseudo: Make realpath() remove trailing slashesrbt/pseudo
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.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Diffstat (limited to 'scripts/postinst-intercepts')
0 files changed, 0 insertions, 0 deletions