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:
parent
e17025174a
commit
a0b7cabe3a
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue