From 5a0d899ee4b2f05b5b880789b68a2e14698cc966 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 12 Sep 2010 17:13:29 +0200 Subject: smemcap: use correct tar magic Signed-off-by: Denys Vlasenko --- procps/smemcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'procps/smemcap.c') 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) sprintf(header.size, "%o", (unsigned)sb->st_size); sprintf(header.mtime, "%llo", sb->st_mtime & 077777777777LL); 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 * the header). The checksum field must be filled with blanks for the -- cgit v1.2.3