ports/security/beid/files/patch-dialogs
Tijl Coosemans b7887f3ffd Update Belgian eID middleware to 4.4.5. Enable the viewer application
and the Firefox extension.  Rename the port from security/libbeid to
security/beid now that it's more than just a library.
2018-08-12 14:02:45 +00:00

22 lines
1.1 KiB
Text

--- 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 {