Blame SOURCES/0849-install-fix-a-potential-crash.patch
|
|
eb6853 |
From bc861f7c3f1f7902ff94f43f45e0b960d6f2985c Mon Sep 17 00:00:00 2001
|
|
|
eb6853 |
From: David Tardon <dtardon@redhat.com>
|
|
|
eb6853 |
Date: Tue, 30 Nov 2021 11:09:59 +0100
|
|
|
eb6853 |
Subject: [PATCH] install: fix a potential crash
|
|
|
eb6853 |
|
|
|
eb6853 |
This is a follow-up for commit b864dc9ef4aa00191dfa81accbe93f9ed0382261 .
|
|
|
eb6853 |
|
|
|
eb6853 |
Fixes #136.
|
|
|
eb6853 |
|
|
|
eb6853 |
Related: #1828758
|
|
|
eb6853 |
---
|
|
|
eb6853 |
src/shared/install.c | 2 +-
|
|
|
eb6853 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
eb6853 |
|
|
|
eb6853 |
diff --git a/src/shared/install.c b/src/shared/install.c
|
|
|
eb6853 |
index 761bf8074e..38cfc4a94c 100644
|
|
|
eb6853 |
--- a/src/shared/install.c
|
|
|
eb6853 |
+++ b/src/shared/install.c
|
|
|
eb6853 |
@@ -619,7 +619,7 @@ static int find_symlinks(
|
|
|
eb6853 |
continue;
|
|
|
eb6853 |
|
|
|
eb6853 |
suffix = strrchr(de->d_name, '.');
|
|
|
eb6853 |
- if (!streq(suffix, ".wants") && !streq(suffix, ".requires"))
|
|
|
eb6853 |
+ if (!streq_ptr(suffix, ".wants") && !streq_ptr(suffix, ".requires"))
|
|
|
eb6853 |
continue;
|
|
|
eb6853 |
|
|
|
eb6853 |
path = path_join(config_path, de->d_name, NULL);
|