Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115669
D9901.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
661 B
Subscribers
None
D9901.diff
View Options
diff --git a/src/util/system.cpp b/src/util/system.cpp
--- a/src/util/system.cpp
+++ b/src/util/system.cpp
@@ -321,6 +321,17 @@
for (int i = 1; i < argc; 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 == "-") {
// bitcoin-tx using stdin
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 11:42 (6 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187668
Default Alt Text
D9901.diff (661 B)
Attached To
D9901: util: Filter out macOS process serial number
Event Timeline
Log In to Comment