aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-09-12 17:13:29 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-09-12 17:13:29 +0200
commit5a0d899ee4b2f05b5b880789b68a2e14698cc966 (patch)
treef50b70728555fdd5ba4ddb733bf10931ea5298ec
parent7dd61e377223d150198a23dbec47f51c21e10e65 (diff)
downloadbusybox-w32-5a0d899ee4b2f05b5b880789b68a2e14698cc966.tar.gz
busybox-w32-5a0d899ee4b2f05b5b880789b68a2e14698cc966.tar.bz2
busybox-w32-5a0d899ee4b2f05b5b880789b68a2e14698cc966.zip
smemcap: use correct tar magic
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r--procps/smemcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/smemcap.c b/procps/smemcap.c
index 06cf93c85..f951a5fb6 100644
--- a/procps/smemcap.c
+++ b/procps/smemcap.c
@@ -41,7 +41,7 @@ static void writeheader(const char *path, struct stat *sb, int type)
41 sprintf(header.size, "%o", (unsigned)sb->st_size); 41 sprintf(header.size, "%o", (unsigned)sb->st_size);
42 sprintf(header.mtime, "%llo", sb->st_mtime & 077777777777LL); 42 sprintf(header.mtime, "%llo", sb->st_mtime & 077777777777LL);
43 header.typeflag = type; 43 header.typeflag = type;
44 //strcpy(header.magic, "ustar "); - do we want to be standard-compliant? 44 strcpy(header.magic, "ustar "); /* like GNU tar */
45 45
46 /* Calculate and store the checksum (the sum of all of the bytes of 46 /* Calculate and store the checksum (the sum of all of the bytes of
47 * the header). The checksum field must be filled with blanks for the 47 * the header). The checksum field must be filled with blanks for the