Files
poky/meta/recipes-devtools
Robert Yang 0d53c40c36 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>
2020-01-11 11:06:22 +00:00
..
2019-11-19 00:24:22 +00:00
2019-07-02 08:13:07 +01:00
2019-08-30 17:10:28 +01:00
2018-08-23 18:02:23 +01:00
2019-11-13 22:02:15 +00:00
2019-09-16 23:02:43 +01:00
2019-09-19 10:54:32 +01:00
2019-12-06 14:49:33 +00:00
2019-12-31 10:37:23 +00:00
2018-11-14 11:14:39 +00:00
2019-12-06 14:49:33 +00:00
2019-10-29 09:08:17 +00:00
2018-03-09 09:17:03 -08:00
2019-04-16 11:10:02 +01:00
2019-09-06 08:15:45 +01:00
2019-08-14 17:33:49 +01:00
2019-05-27 17:06:34 +01:00
2018-01-30 12:53:16 +00:00
2019-10-08 11:22:24 +01:00
2019-02-15 16:05:37 +00:00
2019-05-16 09:16:50 +01:00
2019-07-31 23:03:01 +01:00
2019-05-08 23:00:32 +01:00
2019-12-06 14:49:33 +00:00
2019-07-15 09:30:00 +01:00
2019-04-23 23:30:19 +01:00
2019-07-18 12:16:19 +01:00
2018-11-14 11:14:39 +00:00
2019-08-28 11:31:21 +01:00
2019-07-19 16:19:14 +01:00
2019-10-02 10:09:48 +01:00
2019-09-30 16:55:21 +01:00
2019-08-22 22:48:27 +01:00
2019-04-05 17:32:50 +01:00