From 17518eaa3e70e20b625e99f7d7a9b4f1f58c7bfa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Sat, 10 Jan 2004 19:57:05 +0000 Subject: [PATCH] - updated (fixes installing packages which contain files marked with <> context) Changed files: rpm-context.patch -> 1.2 --- rpm-context.patch | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rpm-context.patch b/rpm-context.patch index 6a6be6f..6501502 100644 --- a/rpm-context.patch +++ b/rpm-context.patch @@ -2,16 +2,17 @@ Index: lib/fsm.c =================================================================== RCS file: /cvs/devel/rpm/lib/fsm.c,v retrieving revision 2.101 -retrieving revision 2.102 -diff -u -u -r2.101 -r2.102 +retrieving revision 2.103 +diff -u -u -r2.101 -r2.103 --- rpm/lib/fsm.c 5 Jan 2004 14:09:47 -0000 2.101 -+++ rpm/lib/fsm.c 9 Jan 2004 23:20:07 -0000 2.102 -@@ -2152,7 +2152,7 @@ ++++ rpm/lib/fsm.c 10 Jan 2004 18:48:19 -0000 2.103 +@@ -2152,7 +2152,8 @@ } break; case FSM_LSETFCON: - if (fsm->fcontext == NULL) -+ 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)) -- 2.43.0