]> code.ossystems Code Review - openembedded-core.git/commit
site: set getcwd() behaviour for long paths for glibc / musl
authorAndré Draszik <git@andred.net>
Fri, 10 Jan 2020 16:52:53 +0000 (16:52 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 11 Jan 2020 09:17:20 +0000 (09:17 +0000)
commit525e33cf99983ee4bc3cf1822364123551aa7c83
tree872aa5d84732d921fd57307fb622b1322006a852
parentfe148da36af2dc086e05e2ebc1c088f1b5485de2
site: set getcwd() behaviour for long paths for glibc / musl

In glibc, getcwd() handles long file names properly, on
musl, getcwd() only works up to PATH_MAX directory depths.

Configuring the autotools (gnulib) test result here allows
coreutils to compile more optimised code for both platforms,
rather than being pessimistic and re-implementing everything
itself.

The difference in behaviour is because both do the kernel
getcwd syscall (which only supports up to PATH_MAX), but
glibc implements fallbacks for longer paths, while musl
doesn't.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/site/common-glibc
meta/site/common-musl