File: libqrencode4.diff

package info (click to toggle)
google-authenticator 20170702-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 372 kB
  • sloc: ansic: 3,276; makefile: 57; python: 10; sh: 1
file content (23 lines) | stat: -rw-r--r-- 967 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Index: google-authenticator-20170702/libpam/src/google-authenticator.c
===================================================================
--- google-authenticator-20170702.orig/libpam/src/google-authenticator.c
+++ google-authenticator-20170702/libpam/src/google-authenticator.c
@@ -203,7 +203,7 @@ static const char *getURL(const char *se
 
 // Display QR code visually. If not possible, return 0.
 static int displayQRCode(const char* url) {
-  void *qrencode = dlopen("libqrencode.so.2", RTLD_NOW | RTLD_LOCAL);
+  void *qrencode = dlopen("libqrencode.so.4", RTLD_NOW | RTLD_LOCAL);
   if (!qrencode) {
     qrencode = dlopen("libqrencode.so.3", RTLD_NOW | RTLD_LOCAL);
   }
@@ -211,6 +211,9 @@ static int displayQRCode(const char* url
     qrencode = dlopen("libqrencode.3.dylib", RTLD_NOW | RTLD_LOCAL);
   }
   if (!qrencode) {
+    qrencode = dlopen("libqrencode.so.2", RTLD_NOW | RTLD_LOCAL);
+  }
+  if (!qrencode) {
     return 0;
   }
   typedef struct {