mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 17:28:56 +00:00
Merge pull request #293 from SnakeHunt2012/master
Fix a small spelling issue.
This commit is contained in:
commit
0fdda61fb5
@ -2435,7 +2435,7 @@ int S3fsCurl::PutRequest(const char* tpath, headers_t& meta, int fd)
|
|||||||
if(-1 != fd){
|
if(-1 != fd){
|
||||||
// duplicate fd
|
// duplicate fd
|
||||||
if(-1 == (fd2 = dup(fd)) || -1 == fstat(fd2, &st) || 0 != lseek(fd2, 0, SEEK_SET) || NULL == (file = fdopen(fd2, "rb"))){
|
if(-1 == (fd2 = dup(fd)) || -1 == fstat(fd2, &st) || 0 != lseek(fd2, 0, SEEK_SET) || NULL == (file = fdopen(fd2, "rb"))){
|
||||||
S3FS_PRN_ERR("Could not duplicate file discriptor(errno=%d)", errno);
|
S3FS_PRN_ERR("Could not duplicate file descriptor(errno=%d)", errno);
|
||||||
if(-1 != fd2){
|
if(-1 != fd2){
|
||||||
close(fd2);
|
close(fd2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user