summaryrefslogtreecommitdiff
path: root/security/pinentry/files/patch-qt::main.cpp
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2003-01-30 22:37:07 +0000
committerWill Andrews <will@FreeBSD.org>2003-01-30 22:37:07 +0000
commita79f0d9fb55c1325fd33335c16b9bda6532f0d66 (patch)
tree490040312901ec900d8e928255264fcc03666470 /security/pinentry/files/patch-qt::main.cpp
parentUpdate to 1.20 (diff)
Add pinentry 0.6.7, a collection of simple PIN or passphrase entry
dialogs.
Notes
Notes: svn path=/head/; revision=74317
Diffstat (limited to 'security/pinentry/files/patch-qt::main.cpp')
-rw-r--r--security/pinentry/files/patch-qt::main.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/security/pinentry/files/patch-qt::main.cpp b/security/pinentry/files/patch-qt::main.cpp
new file mode 100644
index 000000000000..be62eb2ae09f
--- /dev/null
+++ b/security/pinentry/files/patch-qt::main.cpp
@@ -0,0 +1,15 @@
+--- qt/main.cpp.orig Thu Jan 30 09:25:31 2003
++++ qt/main.cpp Thu Jan 30 09:26:10 2003
+@@ -157,6 +157,12 @@
+ #ifdef FALLBACK_CURSES
+ if( pinentry_have_display (argc, argv) ) {
+ #endif
++ // Work around non-standard handling of DISPLAY
++ for( int i = 1; i < argc; ++i ) {
++ if( !strcmp( "--display", argv[i] ) ) {
++ argv[i] = "-display";
++ }
++ }
+ return qt_main( argc, argv );
+ #ifdef FALLBACK_CURSES
+ } else {