about summary refs log tree commit diff
path: root/pkgs/servers/sql/postgresql/patches/disable-normalize_exec_path.patch
blob: 349fd4203348afaf42c9c75467d7f0ab27da7266 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/src/common/exec.c
+++ b/src/common/exec.c
@@ -238,6 +238,9 @@
 static int
 normalize_exec_path(char *path)
 {
+	// On NixOS we *want* stuff relative to 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.