diff options
author | Kenny Root <kroot@google.com> | 2012-10-17 01:33:39 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2012-10-17 01:33:40 +0200 |
commit | 78afed1c15989d4aa7e66094afa81cd3a6d22674 (patch) | |
tree | 0462d8372a28cd14dc5a2389b25500687e7950c9 /minzip/DirUtil.c | |
parent | Merge "Fixing trivial warnings for libminui" (diff) | |
parent | Remove HAVE_SELINUX guards (diff) | |
download | android_bootable_recovery-78afed1c15989d4aa7e66094afa81cd3a6d22674.tar android_bootable_recovery-78afed1c15989d4aa7e66094afa81cd3a6d22674.tar.gz android_bootable_recovery-78afed1c15989d4aa7e66094afa81cd3a6d22674.tar.bz2 android_bootable_recovery-78afed1c15989d4aa7e66094afa81cd3a6d22674.tar.lz android_bootable_recovery-78afed1c15989d4aa7e66094afa81cd3a6d22674.tar.xz android_bootable_recovery-78afed1c15989d4aa7e66094afa81cd3a6d22674.tar.zst android_bootable_recovery-78afed1c15989d4aa7e66094afa81cd3a6d22674.zip |
Diffstat (limited to 'minzip/DirUtil.c')
-rw-r--r-- | minzip/DirUtil.c | 5 |
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); |