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.
This commit is contained in:
mischief 2014-08-10 18:05:57 -07:00
parent e17025174a
commit a0b7cabe3a

View file

@ -495,7 +495,9 @@ main(int argc, char **argv)
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);