SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,12 @@
--- Makefile.orig Wed Mar 21 23:49:05 2001
+++ Makefile Wed Mar 21 23:49:29 2001
@@ -1,9 +1,6 @@
PACKAGE = ucspi-unix
VERSION = 0.34
-CC = gcc
-CFLAGS = -O -g -W -Wall
-
LD = $(CC)
LDFLAGS = -g
LIBS =

View file

@ -0,0 +1,15 @@
--- env.c.orig Fri Jul 9 10:10:54 2010
+++ env.c Fri Jul 9 10:11:30 2010
@@ -9,7 +9,11 @@ extern const char* utoa(unsigned long);
void setup_env(int fd, const char* socket)
{
#ifdef SO_PEERCRED
- struct ucred peer;
+#ifndef __OpenBSD__
+ struct ucred peer;
+#else
+ struct sockpeercred peer;
+#endif
int optlen = sizeof(peer);
if(getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &peer, &optlen) != -1) {
setenv("UNIXREMOTEEGID", utoa(peer.gid), 1);

View file

@ -0,0 +1,9 @@
--- unixclient.c.orig Fri Jul 9 10:12:16 2010
+++ unixclient.c Fri Jul 9 10:12:34 2010
@@ -1,5 +1,6 @@
#include <signal.h>
#include <stdio.h>
+#include <string.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/stat.h>

View file

@ -0,0 +1,9 @@
--- unixserver.c.orig Fri Jul 9 10:15:13 2010
+++ unixserver.c Fri Jul 9 10:15:23 2010
@@ -1,5 +1,6 @@
#include <signal.h>
#include <stdio.h>
+#include <string.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/stat.h>