summaryrefslogtreecommitdiff
path: root/security/skip/files/patch-bq
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1998-01-09 23:23:58 +0000
committerJulian Elischer <julian@FreeBSD.org>1998-01-09 23:23:58 +0000
commitde8a9e28514d8bc9a9fec2eea38c03176e927046 (patch)
treee5692950c8d78ca95a07e7aff61f86d562892e1c /security/skip/files/patch-bq
parentUpgrade, 4.36 -> 4.41. (diff)
Add a package for the SKIP package from Sun Microsystems,
for making secure pipes across the internet (etc.)
Notes
Notes: svn path=/head/; revision=9305
Diffstat (limited to 'security/skip/files/patch-bq')
-rw-r--r--security/skip/files/patch-bq76
1 files changed, 76 insertions, 0 deletions
diff --git a/security/skip/files/patch-bq b/security/skip/files/patch-bq
new file mode 100644
index 000000000000..1b31054145b2
--- /dev/null
+++ b/security/skip/files/patch-bq
@@ -0,0 +1,76 @@
+diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/keymgrd/skipd.C skipsrc-1.0/skip/keymgrd/skipd.C
+--- skipsrc-1.0.orig/skip/keymgrd/skipd.C Fri Oct 25 13:12:54 1996
++++ skipsrc-1.0/skip/keymgrd/skipd.C Thu Dec 4 18:25:47 1997
+@@ -48,6 +48,7 @@
+ * System includes
+ */
+ #include <skip_os.h>
++#include <err.h>
+
+ /*
+ * SKIP includes
+@@ -84,8 +85,9 @@
+ {
+ int c;
+ int errflag = 0;
++ int noFork = 0;
+
+- while ((c = getopt(argc, argv, "vV?")) != EOF) {
++ while ((c = getopt(argc, argv, "nvV?")) != EOF) {
+ switch(c) {
+ case 'v':
+ verbose = 1;
+@@ -95,6 +97,9 @@
+ verbose = 2;
+ break;
+
++ case 'n':
++ noFork = 1;
++ break;
+ case '?':
+ default:
+ errflag++;
+@@ -106,34 +111,18 @@
+ exit(1);
+ }
+
++ if (!noFork)
+ {
+- extern FILE *skip_log_fp;
+-
+- skip_log_fp = fopen("/var/log/skipd.log", "w+");
++ extern int skip_log_syslog;
+
+- // if open fails, skip_log will default to stdout/stderr
++ /* output to syslog */
++ openlog("skipd", 0, LOG_DAEMON);
++ skip_log_syslog = 1;
++
++ /* become a background daemon */
++ if (daemon(0, 0))
++ err(1, "daemon");
+ }
+-
+-
+-// put ourselves into the background
+-
+- switch (fork()) {
+- case -1:
+- skip_log(SKIP_ERROR, "fork failed");
+- exit(1);
+-
+- case 0:
+- break;
+-
+- default:
+- exit(0);
+- }
+-
+- setsid();
+-
+- freopen("/dev/null", "r", stdin);
+- freopen("/dev/null", "w", stdout);
+- freopen("/dev/null", "w", stderr);
+
+ skip_init();
+ skipd_loop();