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-10-08 11:22:24 +01:00
2019-04-09 13:44:39 +01:00
2019-06-28 13:28:37 +01:00
2018-07-30 12:44:34 +01:00
2019-11-19 00:24:22 +00:00
2019-07-02 08:13:07 +01:00
2019-09-07 07:47:24 +01:00
2019-09-16 23:02:43 +01:00
2019-09-06 14:58:09 +01:00
2019-08-30 17:10:28 +01:00
2017-12-02 11:25:33 +00:00
2018-06-27 13:55:21 +01:00
2019-10-08 11:22:24 +01:00
2019-08-22 22:48:27 +01:00
2019-10-08 11:22:24 +01:00
2019-08-22 22:48:27 +01:00
2016-10-28 16:15:18 +01:00
2018-08-23 18:02:23 +01:00
2019-09-27 13:02:16 +01:00
2018-11-23 23:35:19 +00:00
2019-10-08 11:22:24 +01:00
2019-07-11 09:32:50 +01:00
2019-12-06 14:49:33 +00:00
2019-08-12 16:23:57 +01:00
2018-07-10 17:33:00 +01:00
2019-11-13 22:02:15 +00:00
2019-09-16 23:02:43 +01:00
2019-09-27 13:02:16 +01:00
2018-10-10 12:47:34 +01:00
2019-11-13 22:02:15 +00:00
2019-07-18 12:16:19 +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-05-21 12:56:33 +01:00
2019-12-06 14:49:33 +00:00
2019-08-28 11:31:21 +01:00
2019-10-29 09:08:17 +00:00
2018-04-13 16:58:07 +01:00
2019-02-16 08:19:34 +00:00
2018-03-09 09:17:03 -08:00
2019-09-27 13:02:17 +01:00
2019-04-16 11:10:02 +01:00
2019-04-16 11:10:02 +01:00
2019-09-06 08:15:45 +01:00
2019-08-22 22:48:27 +01:00
2019-08-14 17:33:49 +01:00
2019-07-22 17:31:04 +01:00
2019-10-09 14:07:43 +01:00
2019-05-27 17:06:34 +01:00
2018-01-30 12:53:16 +00:00
2016-09-16 15:24:02 +01: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-12-16 23:08:51 +00:00
2019-11-25 21:34:50 +00:00
2019-04-23 23:30:19 +01:00
2016-06-16 11:11:40 +01:00
2019-11-13 22:02:16 +00:00
2019-12-16 23:08:52 +00:00
2020-01-11 11:06:22 +00: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
2020-01-11 11:06:22 +00:00
2020-01-11 11:06:22 +00:00
2019-09-16 23:02:44 +01:00
2019-11-13 22:02:16 +00:00
2019-10-08 11:22:24 +01:00
2019-08-30 17:10:28 +01:00
2019-07-19 16:19:14 +01:00
2019-10-02 10:09:48 +01:00
2019-05-12 09:04:26 +01:00
2019-09-19 10:54:33 +01:00
2019-09-30 16:55:21 +01:00
2019-08-28 11:31:21 +01:00
2019-10-08 11:22:24 +01:00
2019-08-07 16:08:15 +01:00
2019-09-01 22:33:07 +01:00
2018-11-14 11:14:40 +00:00
2018-12-15 11:48:07 +00:00
2019-10-08 11:22:24 +01:00
2017-02-23 12:49:51 -08:00
2019-08-22 22:48:27 +01:00
2019-09-16 23:02:44 +01:00
2019-04-05 17:32:50 +01:00