From: jbj Date: Sat, 10 Jan 2004 18:48:19 +0000 (+0000) Subject: Avoid trying to set "<>" file context. X-Git-Tag: tznext/4.11.0.1.tizen20130304~6607 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47ac30a7eb407dc9aca3274b9dae4e688c7d16ec;p=tools%2Flibrpm-tizen.git Avoid trying to set "<>" file context. CVS patchset: 7073 CVS date: 2004/01/10 18:48:19 --- diff --git a/lib/fsm.c b/lib/fsm.c index 7e0d5a1..a5e1b63 100644 --- a/lib/fsm.c +++ b/lib/fsm.c @@ -2152,7 +2152,8 @@ if (!(fsm->mapFlags & CPIO_ALL_HARDLINKS)) break; } break; case FSM_LSETFCON: - if (fsm->fcontext == NULL || *fsm->fcontext == '\0') + if (fsm->fcontext == NULL || *fsm->fcontext == '\0' + || !strcmp(fsm->fcontext, "<>")) break; rc = lsetfilecon(fsm->path, (security_context_t)fsm->fcontext); if (_fsm_debug && (stage & FSM_SYSCALL))