public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: 162037
@ 2026-11-23  9:23 Paul Nasrat
  0 siblings, 0 replies; only message in thread
From: Paul Nasrat @ 2026-11-23  9:23 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 975055dba8a26b41b88a6cee86a9f34cc23462d3
Author : Paul Nasrat <pnasrat@fedoraproject.org>
Date   : 2005-09-22T17:59:42+00:00
Stats  : +25/-4 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/975055dba8a26b41b88a6cee86a9f34cc23462d3?branch=pmatilai-v6

Log:
162037

---
diff --git a/rpm-4.4.2-contextverify.patch b/rpm-4.4.2-contextverify.patch
index 8685c34..63f53f0 100644
--- a/rpm-4.4.2-contextverify.patch
+++ b/rpm-4.4.2-contextverify.patch
@@ -1,7 +1,28 @@
-diff -u rpm-4.4.2/lib/verify.c rpm-4.4.2/lib/verify.c
---- rpm-4.4.2/lib/verify.c	2005-07-21 16:47:11.000000000 -0400
-+++ rpm-4.4.2/lib/verify.c	2005-08-26 12:23:35.000000000 -0400
-@@ -138,8 +138,10 @@
+--- rpm-4.4.2/lib/verify.c.contextverify	2005-09-22 13:24:09.000000000 -0400
++++ rpm-4.4.2/lib/verify.c	2005-09-22 13:38:17.000000000 -0400
+@@ -122,24 +122,29 @@
+      */
+ /*@-branchstate@*/
+     if (selinuxEnabled == 1 && (flags & RPMVERIFY_CONTEXTS)) {
+-	security_context_t con;
++	security_context_t con = NULL;
+ 
+ 	rc = lgetfilecon(fn, &con);
+ 	if (rc == -1)
+ 	    *res |= (RPMVERIFY_LGETFILECONFAIL|RPMVERIFY_CONTEXTS);
+ 	else {
+-	    security_context_t fcontext;
++	    security_context_t fcontext = NULL;
+              
+ 	    /* Get file security context from patterns. */
+ 	    if (matchpathcon(fn,fmode,&fcontext) != 0)  {
+ 		/* Get file security context from package. */
+-		fcontext = rpmfiFContext(fi);
++ 		char * ficontext = NULL;
++		ficontext = rpmfiFContext(fi);
++		fcontext = xmalloc(sizeof(ficontext));
++		strncpy(fcontext, ficontext, sizeof(ficontext));
+ 	    }
  
  	    if (fcontext == NULL || strcmp(fcontext, con))
  		*res |= RPMVERIFY_CONTEXTS;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23  9:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:23 [rpms/rpm] pmatilai-v6: 162037 Paul Nasrat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox