mirror of
https://github.com/sheumann/hush.git
synced 2024-08-22 17:29:34 +00:00
smemcap: use correct tar magic
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
parent
7dd61e3772
commit
5a0d899ee4
@ -41,7 +41,7 @@ static void writeheader(const char *path, struct stat *sb, int type)
|
|||||||
sprintf(header.size, "%o", (unsigned)sb->st_size);
|
sprintf(header.size, "%o", (unsigned)sb->st_size);
|
||||||
sprintf(header.mtime, "%llo", sb->st_mtime & 077777777777LL);
|
sprintf(header.mtime, "%llo", sb->st_mtime & 077777777777LL);
|
||||||
header.typeflag = type;
|
header.typeflag = type;
|
||||||
//strcpy(header.magic, "ustar "); - do we want to be standard-compliant?
|
strcpy(header.magic, "ustar "); /* like GNU tar */
|
||||||
|
|
||||||
/* Calculate and store the checksum (the sum of all of the bytes of
|
/* Calculate and store the checksum (the sum of all of the bytes of
|
||||||
* the header). The checksum field must be filled with blanks for the
|
* the header). The checksum field must be filled with blanks for the
|
||||||
|
Loading…
Reference in New Issue
Block a user