summaryrefslogtreecommitdiff
path: root/security/trezord/files/patch-src_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'security/trezord/files/patch-src_main.cpp')
-rw-r--r--security/trezord/files/patch-src_main.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/security/trezord/files/patch-src_main.cpp b/security/trezord/files/patch-src_main.cpp
new file mode 100644
index 000000000000..d865a29fcd91
--- /dev/null
+++ b/security/trezord/files/patch-src_main.cpp
@@ -0,0 +1,26 @@
+--- src/main.cpp.orig 2017-12-02 14:37:41 UTC
++++ src/main.cpp
+@@ -33,7 +33,7 @@
+ #include <easylogging++.h>
+
+ #include "utils.hpp"
+-#include "hid.hpp"
++#include "usb.hpp"
+ #include "wire.hpp"
+ #include "core.hpp"
+ #include "http_client.hpp"
+@@ -163,14 +163,12 @@ main(int argc, char *argv[])
+ return 1;
+ }
+
+-#ifdef __linux__
+ if (!vm.count("foreground")) {
+ if (daemon(0, 0) < 0) {
+ LOG(ERROR) << "could not daemonize";
+ return 1;
+ }
+ }
+-#endif
+
+ std::string cert_data;
+ std::string privkey_data;