From 6b600f964471cef977821689185db687f67d2c19 Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Sun, 5 Jan 2014 18:13:43 -0500 Subject: Restore contexts when doing mkdierhier in libtar Do a restore of loaded file contexts to /data/media directory. This will help denials to be prevented when internal storage is wiped. Change-Id: Ie49bbfa48d2f3ee4f08376d9c1877b92c051017c --- libtar/wrapper.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'libtar/wrapper.c') diff --git a/libtar/wrapper.c b/libtar/wrapper.c index dab7e0076..708c845b9 100644 --- a/libtar/wrapper.c +++ b/libtar/wrapper.c @@ -80,12 +80,6 @@ tar_extract_all(TAR *t, char *prefix) "\"%s\")\n", buf); #endif printf("item name: '%s'\n", filename); - /* - if (strcmp(filename, "/") == 0) { - printf("skipping /\n"); - continue; - } - */ if (tar_extract_file(t, buf, prefix) != 0) return -1; } -- cgit v1.2.3