View | Details | Raw Unified | Return to bug 221347
Collapse All | Expand All

(-)devel/radare2/files/patch-kinfo_file.c (+23 lines)
Added Link Here
1
--- libr/debug/p/debug_native.c 2017-08-08 00:36:25.502447000 +0200
2
+++ libr/debug/p/debug_native.c	2017-08-08 00:39:41.234685000 +0200
3
@@ -1487,15 +1487,15 @@
4
 			type = 's';
5
 			if (kve->kf_sock_domain == AF_LOCAL) {
6
 				struct sockaddr_un *sun =
7
-					(struct sockaddr_un *)&kve->kf_sa_local;
8
+					(struct sockaddr_un *)&kve->kf_un.kf_sock.kf_sa_local;
9
 				if (sun->sun_path[0] != 0)
10
-					addr_to_string (&kve->kf_sa_local, path, sizeof(path));
11
+					addr_to_string (&kve->kf_un.kf_sock.kf_sa_local, path, sizeof(path));
12
 				else
13
-					addr_to_string (&kve->kf_sa_peer, path, sizeof(path));
14
+					addr_to_string (&kve->kf_un.kf_sock.kf_sa_peer, path, sizeof(path));
15
 			} else {
16
-				addr_to_string (&kve->kf_sa_local, path, sizeof(path));
17
+				addr_to_string (&kve->kf_un.kf_sock.kf_sa_local, path, sizeof(path));
18
 				strcat (path, " ");
19
-				addr_to_string (&kve->kf_sa_peer, path + strlen (path),
20
+				addr_to_string (&kve->kf_un.kf_sock.kf_sa_peer, path + strlen (path),
21
 						sizeof (path));
22
 			}
23
 			str = path;

Return to bug 221347