about summary refs log tree commit diff
path: root/pkgs/servers/sql/postgresql/patches/disable-resolve_symlinks.patch
blob: fadeea90ac4b67cb8f424834338dee47d992cd41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/src/common/exec.c	2014-09-04 20:19:12.236057588 +0200
+++ b/src/common/exec.c	2014-09-04 20:19:50.550251633 +0200
@@ -218,6 +218,9 @@
 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],