Ian Dowse 1a154a146c Extract the path from an AF_LOCAL sockaddr_un in a way that correctly
terminates the string in all cases, based on code from netstat(1).
The path in a sockaddr_un is terminated either by a '\0', or by
the end of the sockaddr as defined by sun_len.

Previously, the code could write the "safety" '\0' beyond the end
of the sockaddr (sockaddr_un's need only be large enough to store
sun_len bytes), and writing into the the supplied sockaddr is bad
anyway.
2001-05-12 20:05:26 +00:00
..
2001-01-04 10:37:25 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-04-23 07:39:36 +00:00
2001-03-27 17:27:19 +00:00
2001-04-01 12:18:20 +00:00
2001-04-24 00:06:21 +00:00
2001-03-27 17:27:19 +00:00
2001-04-18 15:54:10 +00:00
1999-08-28 00:22:10 +00:00
2000-12-09 09:35:55 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-05-01 09:24:15 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-04-18 15:54:10 +00:00
2000-12-09 09:35:55 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-04-22 03:00:09 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
1999-08-28 00:22:10 +00:00
2001-03-27 17:27:19 +00:00
2001-04-18 15:54:10 +00:00
2001-03-27 17:27:19 +00:00
2001-04-21 00:11:00 +00:00