public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Nasrat <pnasrat@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: 162037
Date: Mon, 23 Nov 2026 09:23:15 GMT	[thread overview]
Message-ID: <179542579522.1.12634362609396552979.rpms-rpm-975055dba8a2@fedoraproject.org> (raw)

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;

                 reply	other threads:[~2026-11-23  9:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179542579522.1.12634362609396552979.rpms-rpm-975055dba8a2@fedoraproject.org \
    --to=pnasrat@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox