ClickHouse/src/Common/clearPasswordFromCommandLine.h
2020-06-14 22:23:05 +03:00

7 lines
268 B
C++

#pragma once
/** If there are --password=... or --password ... arguments in command line, replace their values with zero bytes.
* This is needed to prevent password exposure in 'ps' and similar tools.
*/
void clearPasswordFromCommandLine(int argc, char ** argv);