summaryrefslogtreecommitdiffstats
path: root/libtar/extract.c
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2013-10-12 02:28:00 +0200
committerDees Troy <dees_troy@teamw.in>2013-10-17 18:49:49 +0200
commitc49d7069039241ad02a8a710e9054d253abee3ad (patch)
tree40d9a8e023ad47e9a4032d23b160770e4fcaa12d /libtar/extract.c
parentMerge "Ensure root folders get added in split archives" into twrp2.7 (diff)
downloadandroid_bootable_recovery-c49d7069039241ad02a8a710e9054d253abee3ad.tar
android_bootable_recovery-c49d7069039241ad02a8a710e9054d253abee3ad.tar.gz
android_bootable_recovery-c49d7069039241ad02a8a710e9054d253abee3ad.tar.bz2
android_bootable_recovery-c49d7069039241ad02a8a710e9054d253abee3ad.tar.lz
android_bootable_recovery-c49d7069039241ad02a8a710e9054d253abee3ad.tar.xz
android_bootable_recovery-c49d7069039241ad02a8a710e9054d253abee3ad.tar.zst
android_bootable_recovery-c49d7069039241ad02a8a710e9054d253abee3ad.zip
Diffstat (limited to 'libtar/extract.c')
-rw-r--r--libtar/extract.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libtar/extract.c b/libtar/extract.c
index d19ba859d..8081aa2b9 100644
--- a/libtar/extract.c
+++ b/libtar/extract.c
@@ -161,8 +161,9 @@ tar_extract_file(TAR *t, char *realname, char *prefix)
#ifdef DEBUG
printf(" Restoring SELinux context %s to file %s\n", t->th_buf.selinux_context, realname);
#endif
- if(setfilecon(realname, t->th_buf.selinux_context) < 0)
+ if (lsetfilecon(realname, t->th_buf.selinux_context) < 0) {
fprintf(stderr, "Failed to restore SELinux context %s!\n", strerror(errno));
+ }
}
#endif