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: Fix potential segfault when no rpmlock_path defined Resolves: 231146
Date: Mon, 23 Nov 2026 09:23:59 GMT [thread overview]
Message-ID: <179542583998.1.7162415062026193291.rpms-rpm-f8e442e87171@fedoraproject.org> (raw)
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;
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=179542583998.1.7162415062026193291.rpms-rpm-f8e442e87171@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