2 Sep 2007 14:50
tincctl on *BSD
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)
<at> <at> -399,6 +399,7 <at> <at>
return 1;
}
+#ifdef SO_PEERCRED
struct ucred cred;
socklen_t credlen = sizeof cred;
<at> <at> -411,6 +412,7 <at> <at>
printf("%d\n", cred.pid);
return 0;
}
+#endif
if(!strcasecmp(argv[optind], "stop")) {
write(fd, "stop\n", 5);
Hi all, *BSDs and OSX do net seem to support SO_PEERCRED. Checking for that is needed in src/tincctl.c.(Continue reading)
RSS Feed