Bug 95477 - FcAtomicLock fails when SELinux denies link() syscall with EACCES
This is an issue on Android M, which denies non-root users access to link(). Patch from Rodger Combs
This commit is contained in:
parent
560506b3bb
commit
9ab7633f2f
|
@ -131,7 +131,7 @@ FcAtomicLock (FcAtomic *atomic)
|
|||
return FcFalse;
|
||||
}
|
||||
ret = link ((char *) atomic->tmp, (char *) atomic->lck);
|
||||
if (ret < 0 && (errno == EPERM || errno == ENOTSUP))
|
||||
if (ret < 0 && (errno == EPERM || errno == ENOTSUP || errno == EACCES))
|
||||
{
|
||||
/* the filesystem where atomic->lck points to may not supports
|
||||
* the hard link. so better try to fallback
|
||||
|
|
Loading…
Reference in New Issue