summaryrefslogtreecommitdiffstats
path: root/libtar
diff options
context:
space:
mode:
authorVojtech Bocek <vbocek@gmail.com>2014-06-06 16:15:52 +0200
committerVojtech Bocek <vbocek@gmail.com>2014-06-06 16:16:37 +0200
commit0ea3be665acfb3d041e252e59d8f4d51346942c0 (patch)
tree440aa101cf448265794594d6f6e376a8527cfa56 /libtar
parent2.7.1.0 (diff)
downloadandroid_bootable_recovery-0ea3be665acfb3d041e252e59d8f4d51346942c0.tar
android_bootable_recovery-0ea3be665acfb3d041e252e59d8f4d51346942c0.tar.gz
android_bootable_recovery-0ea3be665acfb3d041e252e59d8f4d51346942c0.tar.bz2
android_bootable_recovery-0ea3be665acfb3d041e252e59d8f4d51346942c0.tar.lz
android_bootable_recovery-0ea3be665acfb3d041e252e59d8f4d51346942c0.tar.xz
android_bootable_recovery-0ea3be665acfb3d041e252e59d8f4d51346942c0.tar.zst
android_bootable_recovery-0ea3be665acfb3d041e252e59d8f4d51346942c0.zip
Diffstat (limited to 'libtar')
-rw-r--r--libtar/extract.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libtar/extract.c b/libtar/extract.c
index d9ab7882f..4526c98ee 100644
--- a/libtar/extract.c
+++ b/libtar/extract.c
@@ -164,9 +164,6 @@ tar_extract_file(TAR *t, char *realname, char *prefix)
if (lsetfilecon(realname, t->th_buf.selinux_context) < 0) {
fprintf(stderr, "Failed to restore SELinux context %s!\n", strerror(errno));
}
- if (lsetfilecon(dirname(realname), t->th_buf.selinux_context) < 0) {
- fprintf(stderr, "Failed to restore SELinux context %s!\n", strerror(errno));
- }
}
#endif