summaryrefslogtreecommitdiffstats
path: root/minzip/DirUtil.c
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2012-10-16 19:47:27 +0200
committerKenny Root <kroot@google.com>2012-10-16 21:57:26 +0200
commit7eb7567aa3faebfb22bd052f3505d485ee23d585 (patch)
tree0462d8372a28cd14dc5a2389b25500687e7950c9 /minzip/DirUtil.c
parentMerge "Fixing trivial warnings for libminui" (diff)
downloadandroid_bootable_recovery-7eb7567aa3faebfb22bd052f3505d485ee23d585.tar
android_bootable_recovery-7eb7567aa3faebfb22bd052f3505d485ee23d585.tar.gz
android_bootable_recovery-7eb7567aa3faebfb22bd052f3505d485ee23d585.tar.bz2
android_bootable_recovery-7eb7567aa3faebfb22bd052f3505d485ee23d585.tar.lz
android_bootable_recovery-7eb7567aa3faebfb22bd052f3505d485ee23d585.tar.xz
android_bootable_recovery-7eb7567aa3faebfb22bd052f3505d485ee23d585.tar.zst
android_bootable_recovery-7eb7567aa3faebfb22bd052f3505d485ee23d585.zip
Diffstat (limited to 'minzip/DirUtil.c')
-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);