aboutsummaryrefslogtreecommitdiff
path: root/security/beid/files/patch-dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'security/beid/files/patch-dialogs')
-rw-r--r--security/beid/files/patch-dialogs22
1 files changed, 22 insertions, 0 deletions
diff --git a/security/beid/files/patch-dialogs b/security/beid/files/patch-dialogs
new file mode 100644
index 000000000000..9175b66c8185
--- /dev/null
+++ b/security/beid/files/patch-dialogs
@@ -0,0 +1,22 @@
+--- cardcomm/pkcs11/src/dialogs/dialogsgtk/beid-badpin.c.orig 2017-10-27 12:42:43 UTC
++++ cardcomm/pkcs11/src/dialogs/dialogsgtk/beid-badpin.c
+@@ -43,7 +43,7 @@ int main(int argc, char *argv[]) {
+ // create new message dialog with CANCEL button in standard places, in center of user's screen
+ ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+- char* msg;
++ char const *msg;
+ int attempts;
+
+ if ((argc == 2) && (argv[1] != NULL) && (strlen(argv[1]) == 1)
+--- cardcomm/pkcs11/src/dialogs/dialogsgtk/parent.c.orig 2017-10-27 12:42:43 UTC
++++ cardcomm/pkcs11/src/dialogs/dialogsgtk/parent.c
+@@ -12,7 +12,7 @@ ssize_t get_parent_path(char *exec_path, size_t exec_p
+ ssize_t exec_path_len = -1;
+ pid_t ppid = getppid();
+
+- snprintf(proc_path, sizeof(proc_path) - 1, "/proc/%d/exe", ppid);
++ snprintf(proc_path, sizeof(proc_path) - 1, "/proc/%d/file", ppid);
+ if ((exec_path_len = readlink(proc_path, exec_path, exec_path_size - 1)) != -1) {
+ exec_path[exec_path_len] = '\0';
+ } else {