summaryrefslogtreecommitdiffstats
path: root/minzip/DirUtil.c
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2012-10-17 02:44:21 +0200
committerKenny Root <kroot@google.com>2012-10-17 02:44:21 +0200
commitcd74108cdac228e946ca8b6ea2ff11ab62941a6d (patch)
treec657c4603c41f1cac92c540bd5e1eb07b4b0c9ad /minzip/DirUtil.c
parentReconcile with jb-mr1-factory-release jb-mr1-release - do not merge (diff)
parentMerge "Remove HAVE_SELINUX guards" (diff)
downloadandroid_bootable_recovery-cd74108cdac228e946ca8b6ea2ff11ab62941a6d.tar
android_bootable_recovery-cd74108cdac228e946ca8b6ea2ff11ab62941a6d.tar.gz
android_bootable_recovery-cd74108cdac228e946ca8b6ea2ff11ab62941a6d.tar.bz2
android_bootable_recovery-cd74108cdac228e946ca8b6ea2ff11ab62941a6d.tar.lz
android_bootable_recovery-cd74108cdac228e946ca8b6ea2ff11ab62941a6d.tar.xz
android_bootable_recovery-cd74108cdac228e946ca8b6ea2ff11ab62941a6d.tar.zst
android_bootable_recovery-cd74108cdac228e946ca8b6ea2ff11ab62941a6d.zip
Diffstat (limited to '')
-rw-r--r--minzip/DirUtil.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/minzip/DirUtil.c b/minzip/DirUtil.c
index 0d49b5780..8dd5da1da 100644
--- a/minzip/DirUtil.c
+++ b/minzip/DirUtil.c
@@ -145,24 +145,19 @@ dirCreateHierarchy(const char *path, int mode,
} else if (ds == DMISSING) {
int err;
-#ifdef HAVE_SELINUX
char *secontext = NULL;
if (sehnd) {
selabel_lookup(sehnd, &secontext, cpath, mode);
setfscreatecon(secontext);
}
-#endif
err = mkdir(cpath, mode);
-#ifdef HAVE_SELINUX
-
if (secontext) {
freecon(secontext);
setfscreatecon(NULL);
}
-#endif
if (err != 0) {
free(cpath);