| 1370 | |
| 1371 | |
| 1372 | static void |
| 1373 | _tarWriteHeader(TAR_MEMBER *th) |
| 1374 | { |
| 1375 | char h[TAR_BLOCK_SIZE]; |
| 1376 | |
| 1377 | tarCreateHeader(h, th->targetFile, NULL, th->fileLen, |
| 1378 | 0600, 04000, 02000, time(NULL)); |
| 1379 | |
| 1380 | /* Now write the completed header. */ |
| 1381 | if (fwrite(h, 1, TAR_BLOCK_SIZE, th->tarFH) != TAR_BLOCK_SIZE) |
| 1382 | WRITE_ERROR_EXIT; |
| 1383 | } |
no test coverage detected