simplify and fix getcwd
commitb08d5b5caca499902844099ab6ddf016a7ec8e3d
authorWaldemar Brodkorb <wbx@uclibc-ng.org>
Sat, 20 Jan 2018 20:10:56 +0000 (20 21:10 +0100)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Sun, 21 Jan 2018 11:44:19 +0000 (21 11:44 +0000)
tree6a96803aa633d7446cdfc62d653a62b23b67f8b1
parentdf350133f24e6202c4eaf57a1941aa2836f258ae
simplify and fix getcwd

The fallback code is not used as all supported kernels have the
syscall. Check if a absolute path is returned from syscall.
libc/sysdeps/linux/common/getcwd.c