ref: 400d20099c3625c3070702e87e6afd9251b89f0b
parent: e7c046fe01e758b1956e9c63cdd8b1310141f7ff
author: mischief <mischief@offblast.org>
date: Sun Aug 10 14:05:57 EDT 2014
secstore: read server from $secstore environment variable this allows setting the secstore server with secstore=tcp!example.com!secstore or secstore='$secstore' to read from ndb.
--- a/sys/src/cmd/auth/secstore/secstore.c
+++ b/sys/src/cmd/auth/secstore/secstore.c
@@ -495,7 +495,9 @@
char *gfile[MAXFILES+1], *pfile[MAXFILES+1], *rfile[MAXFILES+1];
AuthConn *c;
- serve = "$auth";
+ serve = getenv("secstore");+ if(serve == nil)
+ serve = "$auth";
user = getuser();
memset(Gflag, 0, sizeof Gflag);
--
⑨