547:4a249c645ae4 | 548:ab46acda1066 |
---|---|
1135 } | 1135 } |
1136 fclose(out); | 1136 fclose(out); |
1137 | 1137 |
1138 if(issplit) { | 1138 if(issplit) { |
1139 if(truncate_file >= 0) { | 1139 if(truncate_file >= 0) { |
1140 truncate(tmp_path, truncate_file); | 1140 if(truncate(local_path, truncate_file)) { |
1141 perror("truncate"); | |
1142 } | |
1141 } | 1143 } |
1142 | 1144 |
1143 char *res_hash = sync_get_content_hash(res); | 1145 char *res_hash = sync_get_content_hash(res); |
1144 if(res_hash) { | 1146 if(res_hash) { |
1145 content_hash = res_hash; | 1147 content_hash = res_hash; |