mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
09bbdc3ead
This fixes CVE-2024-7348. * /gnu/packages/databases.scm (postgresql-15): Move from here... (postgresql-16): ... to here. [version]: Update to 16.4. [source]: Adapt source and add patch. [native-inputs]: Add pkg-config. [inputs]: Add icu4c. * gnu/packages/patches/postgresql-disable-normalize_exec_path.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Change-Id: I57771ebcf462bdeca73eda157274db089816fd12
22 lines
681 B
Diff
22 lines
681 B
Diff
diff --git a/src/common/exec.c b/src/common/exec.c
|
|
index f209b93..ed42202 100644
|
|
--- a/src/common/exec.c
|
|
+++ b/src/common/exec.c
|
|
@@ -238,6 +238,14 @@ find_my_exec(const char *argv0, char *retpath)
|
|
static int
|
|
normalize_exec_path(char *path)
|
|
{
|
|
+ /*
|
|
+ * Guix specific patch: postgresql extensions need to be located in the
|
|
+ * same directory as postgresql.
|
|
+ * In Guix we currently use directory-unions to create extended postgresql
|
|
+ * packages. Directory unions use symlinks, that's why we need to be able
|
|
+ * to use symlinks.
|
|
+ */
|
|
+ return 0;
|
|
/*
|
|
* We used to do a lot of work ourselves here, but now we just let
|
|
* realpath(3) do all the heavy lifting.
|
|
--
|
|
2.46.0
|
|
|