public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Fix potential segfault when no rpmlock_path defined Resolves: 231146
@ 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 : f8e442e87171cb363d99d9b7b1a6cae3d5247d6f
Author : Paul Nasrat <pnasrat@fedoraproject.org>
Date   : 2007-03-13T10:34:51+00:00
Stats  : +7/-4 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/f8e442e87171cb363d99d9b7b1a6cae3d5247d6f?branch=pmatilai-v6

Log:
Fix potential segfault when no rpmlock_path defined Resolves: 231146

---
diff --git a/rpm-4.4.2-userlock.patch b/rpm-4.4.2-userlock.patch
index b6826f8..2c74e09 100644
--- a/rpm-4.4.2-userlock.patch
+++ b/rpm-4.4.2-userlock.patch
@@ -1,14 +1,17 @@
---- rpm-4.4.2/lib/rpmlock.c.userlock	2006-02-23 15:24:46.000000000 -0500
-+++ rpm-4.4.2/lib/rpmlock.c	2006-02-23 15:25:53.000000000 -0500
-@@ -37,7 +37,7 @@
+--- rpm-4.4.2/lib/rpmlock.c.userlock	2005-01-26 13:41:43.000000000 +0000
++++ rpm-4.4.2/lib/rpmlock.c	2007-03-13 10:33:15.000000000 +0000
+@@ -37,9 +37,9 @@
  
  	/* XXX oneshot to determine path for fcntl lock. */
  	if (rpmlock_path == NULL) {
 -	    char * t = rpmExpand(rpmlock_path_default, NULL);
 +	    char * t = rpmGenPath(rootdir, rpmlock_path_default, NULL);
  	    if (t == NULL || *t == '\0' || *t == '%')
- 		t = RPMLOCK_PATH;
+-		t = RPMLOCK_PATH;
++		t = strdup(RPMLOCK_PATH);
  	    rpmlock_path = xstrdup(t);
+ 	    t = _free(t);
+ 	}
 @@ -129,7 +129,7 @@
  	const char *rootDir = rpmtsRootDir(ts);
  	rpmlock lock;

^ 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: Fix potential segfault when no rpmlock_path defined Resolves: 231146 Paul Nasrat

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