tincctl on *BSD
Lorenz Schori
lorenz.schori at gmx.ch
Sun Sep 2 14:50:26 CEST 2007
Hi all,
*BSDs and OSX do net seem to support SO_PEERCRED. Checking for that
is needed in src/tincctl.c.
--- src/tincctl.c (revision 1555)
+++ src/tincctl.c (working copy)
@@ -399,6 +399,7 @@
return 1;
}
+#ifdef SO_PEERCRED
struct ucred cred;
socklen_t credlen = sizeof cred;
@@ -411,6 +412,7 @@
printf("%d\n", cred.pid);
return 0;
}
+#endif
if(!strcasecmp(argv[optind], "stop")) {
write(fd, "stop\n", 5);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20070902/a3eefc63/attachment.pgp
More information about the tinc-devel
mailing list