diff options
Diffstat (limited to 'src/util/backup_file.c')
-rw-r--r-- | src/util/backup_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/backup_file.c b/src/util/backup_file.c index 99079327..fb1604b9 100644 --- a/src/util/backup_file.c +++ b/src/util/backup_file.c @@ -96,8 +96,8 @@ int backup_file(const char *src_file, int dbglvl) count = num; + pos = 0; while (count > 0) { - pos = 0; errno = 0; num = write(dst_fd, &buf[pos], count); if (num < 0) { |