mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-29 13:32:33 +02:00
util: Filter out macOS process serial number
This commit is contained in:
parent
4daadce36c
commit
b5f0be3879
@ -379,6 +379,15 @@ bool ArgsManager::ParseParameters(int argc, const char* const argv[], std::strin
|
|||||||
|
|
||||||
for (int i = 1; i < argc; i++) {
|
for (int i = 1; i < argc; i++) {
|
||||||
std::string key(argv[i]);
|
std::string key(argv[i]);
|
||||||
|
|
||||||
|
#ifdef MAC_OSX
|
||||||
|
// At the first time when a user gets the "App downloaded from the
|
||||||
|
// internet" warning, and clicks the Open button, macOS passes
|
||||||
|
// a unique process serial number (PSN) as -psn_... command-line
|
||||||
|
// argument, which we filter out.
|
||||||
|
if (key.substr(0, 5) == "-psn_") continue;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (key == "-") break; //bitcoin-tx using stdin
|
if (key == "-") break; //bitcoin-tx using stdin
|
||||||
std::string val;
|
std::string val;
|
||||||
size_t is_index = key.find('=');
|
size_t is_index = key.find('=');
|
||||||
|
Loading…
Reference in New Issue
Block a user