opnsense-ports/security/libbeid/files/patch-dialogs
Franco Fichtner bd0e09fa5b */*: sync with upstream
Taken from: FreeBSD
2017-05-16 18:34:11 +02:00

11 lines
574 B
Text

--- cardcomm/pkcs11/src/dialogs/dialogsgtk/parent.c.orig 2017-05-10 13:28:54 UTC
+++ cardcomm/pkcs11/src/dialogs/dialogsgtk/parent.c
@@ -12,7 +12,7 @@ ssize_t get_parent_path(char *exec_path,
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 {