shithub: riscv

Download patch

ref: a0b7cabe3a722d7a245b113dd9dec555872e559c
parent: e17025174a11c97094b167667d45c3190af44b64
author: mischief <[email protected]>
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);