mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-04-01 22:21:53 +00:00
Fixed bugs
1) Fixed Issue 321(#30) Fixed a bug(mis-coding). Issue 321(#30): no write permission for non-root user 2) Fixed Issue 365 Fixed a bug(mis-coding). Issue 365: there is a logical error in s3fs-1.72 s3fs.cpp:2865 git-svn-id: http://s3fs.googlecode.com/svn/trunk@470 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
parent
2b3fb2d102
commit
07a8caa250
@ -498,7 +498,7 @@ static int check_object_access(const char* path, int mask, struct stat* pstbuf)
|
|||||||
}
|
}
|
||||||
if(is_s3fs_umask){
|
if(is_s3fs_umask){
|
||||||
// If umask is set, all object attributes set ~umask.
|
// If umask is set, all object attributes set ~umask.
|
||||||
mode |= ((S_IRWXU | S_IRWXG | S_IRWXO) & ~s3fs_umask);
|
mode &= ((S_IRWXU | S_IRWXG | S_IRWXO) & ~s3fs_umask);
|
||||||
}
|
}
|
||||||
mode &= base_mask;
|
mode &= base_mask;
|
||||||
|
|
||||||
@ -2895,7 +2895,7 @@ static int get_access_keys(void)
|
|||||||
// It is possible that the user's file was there but
|
// It is possible that the user's file was there but
|
||||||
// contained no key pairs i.e. commented out
|
// contained no key pairs i.e. commented out
|
||||||
// in that case, go look in the final location
|
// in that case, go look in the final location
|
||||||
if(!S3fsCurl::IsSetAccessKeyId()){
|
if(S3fsCurl::IsSetAccessKeyId()){
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user