From 600baebaced399f4a5528515811ac43428a7bc30 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 24 Jun 2019 22:35:29 -0700 Subject: tar: implement --mode. Used by build/make/tools/mktarball.sh in AOSP. (Which is why today's switch to toybox tar got reverted.) --- tests/tar.test | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/tar.test b/tests/tar.test index dbc3ad7c..f1703644 100644 --- a/tests/tar.test +++ b/tests/tar.test @@ -51,6 +51,10 @@ testing "pass mtime" \ "tar c --owner root --group root file | LST --full-time" \ "-rw-rw-r-- root/root 0 1987-01-23 12:34:56 file\n" "" "" +testing "adjust mode" \ + "tar c --owner root --group root --mode a+x file | LST --full-time" \ + "-rwxrwxr-x root/root 0 1987-01-23 12:34:56 file\n" "" "" + mkdir dir testing "create dir" "$TAR dir | $SUM" \ "05739c423d7d4a7f12b3dbb7c94149acb2bb4f8d\n" "" "" -- cgit v1.2.3