mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-09 16:06:46 +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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(0 == payload_hash.length()){
|
if(b_infile != NULL && 0 == payload_hash.length()){
|
||||||
S3FS_PRN_ERR("Failed to make SHA256.");
|
S3FS_PRN_ERR("Failed to make SHA256.");
|
||||||
// TODO: propagate error
|
// TODO: propagate error
|
||||||
}
|
}
|
||||||
|
@ -321,9 +321,13 @@ unsigned char* s3fs_sha256_fd(int fd, off_t start, off_t size)
|
|||||||
off_t bytes;
|
off_t bytes;
|
||||||
unsigned char* result;
|
unsigned char* result;
|
||||||
|
|
||||||
|
if(-1 == fd){
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
if(-1 == size){
|
if(-1 == size){
|
||||||
struct stat st;
|
struct stat st;
|
||||||
if(-1 == fstat(fd, &st)){
|
if(-1 == fstat(fd, &st)){
|
||||||
|
S3FS_PRN_ERR("fstat error(%d)", errno);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
size = st.st_size;
|
size = st.st_size;
|
||||||
|
Loading…
Reference in New Issue
Block a user