main: default -u from CCR_USER env
This commit is contained in:
parent
c27285e750
commit
76fb3b059d
|
@ -112,6 +112,7 @@ void test()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "actions.h"
|
#include "actions.h"
|
||||||
#include "algo_suite.h"
|
#include "algo_suite.h"
|
||||||
|
@ -330,6 +331,12 @@ int main (int argc, char**argv)
|
||||||
//register all available algorithms
|
//register all available algorithms
|
||||||
fill_algorithm_suite (AS);
|
fill_algorithm_suite (AS);
|
||||||
|
|
||||||
|
//default local user key from environment
|
||||||
|
if(user.empty()) {
|
||||||
|
const char*u=getenv("CCR_USER");
|
||||||
|
if(u) user=u;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* cin/cout redirection
|
* cin/cout redirection
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue