summary refs log tree commit diff
path: root/OpenBSD/www/cgit-causal-agency/patches/patch-setup_c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-30 19:37:37 +0000
committerJune McEnroe <june@causal.agency>2021-09-30 19:39:24 +0000
commit584184c64544cb9a0ac57cdfe210bad3ed4f1529 (patch)
tree7c4e4ca02e3d94594e604c47052b255d12da8074 /OpenBSD/www/cgit-causal-agency/patches/patch-setup_c
parentMove FreeBSD ports under FreeBSD directory (diff)
downloadports-584184c64544cb9a0ac57cdfe210bad3ed4f1529.tar.gz
ports-584184c64544cb9a0ac57cdfe210bad3ed4f1529.zip
OpenBSD: Add port for cgit-causal-agency
Diffstat (limited to '')
-rw-r--r--OpenBSD/www/cgit-causal-agency/patches/patch-setup_c22
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenBSD/www/cgit-causal-agency/patches/patch-setup_c b/OpenBSD/www/cgit-causal-agency/patches/patch-setup_c
new file mode 100644
index 0000000..c93edf7
--- /dev/null
+++ b/OpenBSD/www/cgit-causal-agency/patches/patch-setup_c
@@ -0,0 +1,22 @@
+$OpenBSD: patch-setup_c,v 1.1 2017/03/22 20:23:52 landry Exp $
+
+Dont openbsd dev/null, doesnt exist in the default chroot
+
+--- git/setup.c.orig	Wed Mar  1 21:01:06 2017
++++ git/setup.c	Wed Mar  1 21:01:56 2017
+@@ -1024,6 +1024,7 @@ const char *resolve_gitdir(const char *suspect)
+ /* if any standard file descriptor is missing open it to /dev/null */
+ void sanitize_stdfds(void)
+ {
++#if 0
+ 	int fd = open("/dev/null", O_RDWR, 0);
+ 	while (fd != -1 && fd < 2)
+ 		fd = dup(fd);
+@@ -1031,6 +1032,7 @@ void sanitize_stdfds(void)
+ 		die_errno("open /dev/null or dup failed");
+ 	if (fd > 2)
+ 		close(fd);
++#endif
+ }
+ 
+ int daemonize(void)