1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-25 01:27:08 +00:00
termux-packages/packages/binutils/dirsearch.cc.patch
its-pointless d6c857eee5 in android 7 and above there is a EACCESS error on readding root dir /
this causes error in ld.gold but not in ld.
this patch makes ld.gold ignore that error to match ld behaviour.
2018-09-10 22:30:42 +02:00

12 lines
481 B
Diff

--- ../cache/binutils-2.30/gold/dirsearch.cc 2018-01-13 13:31:16.000000000 +0000
+++ ./gold/dirsearch.cc 2018-07-04 01:41:01.695893401 +0000
@@ -69,7 +69,7 @@
{
// We ignore directories which do not exist or are actually file
// names.
- if (errno != ENOENT && errno != ENOTDIR)
+ if (errno != ENOENT && errno != ENOTDIR && errno != EACCES )
gold::gold_error(_("%s: can not read directory: %s"),
this->dirname_, strerror(errno));
return;