diff options
Diffstat (limited to 'src/bin/pg_dump/pg_backup_tar.c')
-rw-r--r-- | src/bin/pg_dump/pg_backup_tar.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_backup_tar.c b/src/bin/pg_dump/pg_backup_tar.c index 674c24191dc..a137513e78c 100644 --- a/src/bin/pg_dump/pg_backup_tar.c +++ b/src/bin/pg_dump/pg_backup_tar.c @@ -721,7 +721,7 @@ static void _CloseArchive(ArchiveHandle* AH) lclContext* ctx = (lclContext*)AH->formatData; TAR_MEMBER *th; RestoreOptions *ropt; - int savVerbose; + int savVerbose, i; if (AH->mode == archModeWrite) { @@ -774,6 +774,13 @@ static void _CloseArchive(ArchiveHandle* AH) AH->public.verbose = savVerbose; tarClose(AH, th); + + /* Add a block of NULLs since it's de-rigeur. */ + for(i=0; i<512; i++) + { + fputc(0, ctx->tarFH); + } + } AH->FH = NULL; |