Found trying to build the aosp_cf_x86_phone-userdebug target. The good
news is that the targets that I knew were using tar with sparse files
all pass now.
---
toys/posix/tar.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
From f9bff85625ec57d43c6cad5edf4fdbba7ce3077f Mon Sep 17 00:00:00 2001
From: Elliott Hughes <[email protected]>
Date: Wed, 22 May 2019 19:15:13 -0700
Subject: [PATCH] tar: turns out --sparse is also known as -S.
Found trying to build the aosp_cf_x86_phone-userdebug target. The good
news is that the targets that I knew were using tar with sparse files
all pass now.
---
toys/posix/tar.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/toys/posix/tar.c b/toys/posix/tar.c
index e8dc319a..16b528fa 100644
--- a/toys/posix/tar.c
+++ b/toys/posix/tar.c
@@ -18,13 +18,13 @@
* Extract into dir same as filename, --restrict? "Tarball is splodey"
*
-USE_TAR(NEWTOY(tar, "&(sparse)(restrict)(full-time)(no-recursion)(numeric-owner)(no-same-permissions)(overwrite)(exclude)*(mtime):(group):(owner):(to-command):o(no-same-owner)p(same-permissions)k(keep-old)c(create)|h(dereference)x(extract)|t(list)|v(verbose)J(xz)j(bzip2)z(gzip)O(to-stdout)m(touch)X(exclude-from)*T(files-from)*C(directory):f(file):a[!txc][!jzJa]", TOYFLAG_USR|TOYFLAG_BIN))
+USE_TAR(NEWTOY(tar, "&(restrict)(full-time)(no-recursion)(numeric-owner)(no-same-permissions)(overwrite)(exclude)*(mtime):(group):(owner):(to-command):o(no-same-owner)p(same-permissions)k(keep-old)c(create)|h(dereference)x(extract)|t(list)|v(verbose)J(xz)j(bzip2)z(gzip)S(sparse)O(to-stdout)m(touch)X(exclude-from)*T(files-from)*C(directory):f(file):a[!txc][!jzJa]", TOYFLAG_USR|TOYFLAG_BIN))
config TAR
bool "tar"
default y
help
- usage: tar [-cxt] [-fvohmjkO] [-XTCf NAME] [FILES]
+ usage: tar [-cxt] [-fvohmjkOS] [-XTCf NAME] [FILES]
Create, extract, or list files in a .tar (or compressed t?z) file.
@@ -309,7 +309,7 @@ static int add_to_tar(struct dirtree *node)
return 0;
}
- if (FLAG(sparse)) {
+ if (FLAG(S)) {
long long lo, ld = 0, len = 0;
// Enumerate the extents
--
2.21.0.1020.gf2820cf01a-goog
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net