From 07a8caa2509f46479181bc9db21ea073a0ae5a4d Mon Sep 17 00:00:00 2001 From: "ggtakec@gmail.com" Date: Thu, 22 Aug 2013 02:39:21 +0000 Subject: [PATCH] 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 --- src/s3fs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/s3fs.cpp b/src/s3fs.cpp index fb2f68c..edbf1e2 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -498,7 +498,7 @@ static int check_object_access(const char* path, int mask, struct stat* pstbuf) } if(is_s3fs_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; @@ -2895,7 +2895,7 @@ static int get_access_keys(void) // It is possible that the user's file was there but // contained no key pairs i.e. commented out // in that case, go look in the final location - if(!S3fsCurl::IsSetAccessKeyId()){ + if(S3fsCurl::IsSetAccessKeyId()){ return EXIT_SUCCESS; } }