diff options
author | root <root@rshg054.dnsready.net> | 2012-04-10 00:01:08 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-04-10 00:01:08 +0000 |
commit | 223ca251f3ce07eb5484be845e631d6ca645b263 (patch) | |
tree | a9e543c45cd0d58c82e39617f602a718d86976c4 /extra/libtar/libtar-1.2.11-tar_header.patch | |
parent | 1fed401c439c264bd92a4c13af1bea0bea458cb4 (diff) |
Tue Apr 10 00:01:08 UTC 2012
Diffstat (limited to 'extra/libtar/libtar-1.2.11-tar_header.patch')
-rw-r--r-- | extra/libtar/libtar-1.2.11-tar_header.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/extra/libtar/libtar-1.2.11-tar_header.patch b/extra/libtar/libtar-1.2.11-tar_header.patch new file mode 100644 index 000000000..161f7da7b --- /dev/null +++ b/extra/libtar/libtar-1.2.11-tar_header.patch @@ -0,0 +1,15 @@ +diff -Naur libtar-1.2.11/lib/encode.c libtar-1.2.11.tar_header/lib/encode.c +--- libtar-1.2.11/lib/encode.c 2003-01-07 07:10:59.000000000 +0530 ++++ libtar-1.2.11.tar_header/lib/encode.c 2009-11-20 11:13:25.166756167 +0530 +@@ -30,7 +30,10 @@ + int i, sum = 0; + + if (t->options & TAR_GNU) +- strncpy(t->th_buf.magic, "ustar ", 8); ++ { ++ memcpy(t->th_buf.magic, "ustar ", 6); ++ memcpy(t->th_buf.version, " \0", 2); ++ } + else + { + strncpy(t->th_buf.version, TVERSION, TVERSLEN); |