Add initiator pid, uid and gid to a debug log (#1716)

This commit is contained in:
Martynov Maxim 2021-07-10 10:23:20 +03:00 committed by GitHub
parent 4cc210c5ab
commit 881025cc9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -535,6 +535,8 @@ static int check_object_access(const char* path, int mask, struct stat* pstbuf)
if(NULL == (pcxt = fuse_get_context())){
return -EIO;
}
S3FS_PRN_DBG("[pid=%u,uid=%u,gid=%u]", (unsigned int)(pcxt->pid), (unsigned int)(pcxt->uid), (unsigned int)(pcxt->gid));
if(0 != (result = get_object_attribute(path, pst))){
// If there is not the target file(object), result is -ENOENT.
return result;