aboutsummaryrefslogtreecommitdiffstats
path: root/net/zephyr
diff options
context:
space:
mode:
authorJohn W. De Boskey <jwd@FreeBSD.org>2001-11-27 03:35:23 +0800
committerJohn W. De Boskey <jwd@FreeBSD.org>2001-11-27 03:35:23 +0800
commit03cef729d226b7a9450e76949a7e2162bc982380 (patch)
tree564b5fc5aec92dd690f2ce66d9793a2c4b036cc5 /net/zephyr
parent345085a5bf4e4a3e103a5f3ba6980ee76d30ac6b (diff)
downloadfreebsd-ports-03cef729d226b7a9450e76949a7e2162bc982380.tar.gz
freebsd-ports-03cef729d226b7a9450e76949a7e2162bc982380.tar.zst
freebsd-ports-03cef729d226b7a9450e76949a7e2162bc982380.zip
Final patch from submitter.
zephyr.vars is now searched for in the same location as the other SYSCONFDIR configuration files. Permit realm to be defined in zephyr.vars to allow overriding of the default hard-coded "local-realm" in lib/ZInit.c. PR: ports/30491 Submitted by: sasdrq@unx.sas.com
Notes
Notes: svn path=/head/; revision=50599
Diffstat (limited to 'net/zephyr')
-rw-r--r--net/zephyr/files/patch-ag34
1 files changed, 34 insertions, 0 deletions
diff --git a/net/zephyr/files/patch-ag b/net/zephyr/files/patch-ag
new file mode 100644
index 000000000000..2585114f395a
--- /dev/null
+++ b/net/zephyr/files/patch-ag
@@ -0,0 +1,34 @@
+--- lib/ZInit.c.orig Fri Jan 22 18:19:14 1999
++++ lib/ZInit.c Wed Nov 21 16:32:06 2001
+@@ -36,6 +36,7 @@
+ int s, sinsize = sizeof(sin);
+ Code_t code;
+ ZNotice_t notice;
++ char *realm = NULL;
+ #ifdef HAVE_KRB4
+ char *krealm = NULL;
+ int krbval;
+@@ -104,7 +105,11 @@
+ return (krbval);
+ }
+ #else
+- strcpy(__Zephyr_realm, "local-realm");
++ realm = ZGetVariable("realm");
++ if (realm)
++ strcpy(__Zephyr_realm, realm);
++ else
++ strcpy(__Zephyr_realm, "local-realm");
+ #endif
+
+ __My_addr.s_addr = INADDR_NONE;
+--- lib/ZVariables.c.orig Thu Jun 3 10:51:42 1999
++++ lib/ZVariables.c Mon Nov 26 08:51:56 2001
+@@ -36,7 +36,7 @@
+ if ((ret = get_varval(varfile, var)) != ZERR_NONE)
+ return (ret);
+
+- sprintf(varfile, "%s/zephyr.vars", SYSCONFDIR);
++ sprintf(varfile, "%s/zephyr/zephyr.vars", SYSCONFDIR);
+ return (get_varval(varfile, var));
+ }
+