mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-10 16:20:59 +00:00
Return EACESS when lacking required executable bit (#1617)
This makes the check consistent with read and write. Found via pjdfstests. References #1551. References #1589.
This commit is contained in:
parent
3663082a01
commit
ed2e877bb6
@ -579,7 +579,7 @@ static int check_object_access(const char* path, int mask, struct stat* pstbuf)
|
|||||||
|
|
||||||
if(X_OK == (mask & X_OK)){
|
if(X_OK == (mask & X_OK)){
|
||||||
if(0 == (mode & (S_IXUSR | S_IXGRP | S_IXOTH))){
|
if(0 == (mode & (S_IXUSR | S_IXGRP | S_IXOTH))){
|
||||||
return -EPERM;
|
return -EACCES;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(W_OK == (mask & W_OK)){
|
if(W_OK == (mask & W_OK)){
|
||||||
|
Loading…
Reference in New Issue
Block a user