summaryrefslogtreecommitdiffstats
path: root/tarWrite.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tarWrite.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tarWrite.c b/tarWrite.c
index 9b6e7217a..e3963bbeb 100644
--- a/tarWrite.c
+++ b/tarWrite.c
@@ -88,5 +88,6 @@ ssize_t write_libtar_buffer(int fd, const void *buffer, size_t size) {
void flush_libtar_buffer(int fd) {
eot_count = 0;
- buffer_status = 2;
+ if (buffer_status)
+ buffer_status = 2;
}