forked from Lainports/opnsense-ports
11 lines
574 B
Text
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 {
|