SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
15
net/ucspi-unix/patches/patch-env_c
Normal file
15
net/ucspi-unix/patches/patch-env_c
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue