mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 02:07:53 +02:00
Avoid GNU tar warning about lone zero block
git-svn-id: trunk@35498 -
This commit is contained in:
parent
319a397ae8
commit
315adde6ef
@ -977,6 +977,13 @@ VAR
|
||||
BEGIN
|
||||
FillChar (Rec, SizeOf (Rec), 0);
|
||||
FStream.Write (Rec, RECORDSIZE);
|
||||
{
|
||||
Avoid warning: 'tar: A lone zero block at *'
|
||||
The reason for this message is that GNU tar format has been changed
|
||||
to require TWO zero blocks marking the end of the archive.
|
||||
Thus write a second zero block.
|
||||
}
|
||||
FStream.Write (Rec, RECORDSIZE);
|
||||
FFinalized := TRUE;
|
||||
END;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user