mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-09 07:59:52 +00:00
Suppress spurious SHA256 error message (#1544)
This commit is contained in:
parent
ed85b72bf5
commit
4b53d4bf6b
@ -2595,7 +2595,7 @@ void S3fsCurl::insertV4Headers()
|
||||
break;
|
||||
}
|
||||
|
||||
if(0 == payload_hash.length()){
|
||||
if(b_infile != NULL && 0 == payload_hash.length()){
|
||||
S3FS_PRN_ERR("Failed to make SHA256.");
|
||||
// TODO: propagate error
|
||||
}
|
||||
|
@ -321,9 +321,13 @@ unsigned char* s3fs_sha256_fd(int fd, off_t start, off_t size)
|
||||
off_t bytes;
|
||||
unsigned char* result;
|
||||
|
||||
if(-1 == fd){
|
||||
return NULL;
|
||||
}
|
||||
if(-1 == size){
|
||||
struct stat st;
|
||||
if(-1 == fstat(fd, &st)){
|
||||
S3FS_PRN_ERR("fstat error(%d)", errno);
|
||||
return NULL;
|
||||
}
|
||||
size = st.st_size;
|
||||
|
Loading…
Reference in New Issue
Block a user