about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/sql/postgresql/patches/disable-resolve_symlinks.patch
blob: 3e6fd5e838a24ff25878cbe2040c762d13e7fac3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/port/exec.c b/src/port/exec.c
index c79e8ba..42c4091 100644
--- a/src/port/exec.c
+++ b/src/port/exec.c
@@ -216,6 +216,9 @@ find_my_exec(const char *argv0, char *retpath)
 static int
 resolve_symlinks(char *path)
 {
+    // On NixOS we *want* stuff relative to symlinks.
+    return 0;
+
 #ifdef HAVE_READLINK
 	struct stat buf;
 	char		orig_wd[MAXPGPATH],