1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/roles/http
Andy Green 073a59264a unix domain: fix path name length
Unlike any other sockaddr variant it turns out when sockaddr_un reports its
sizeof() to connect() or listen(), it is trimmed to the used length of the
sun_path[] member not including any trailing 0x00.

Until now we worked fine, but our actual UDS paths have a large number of
trailing 0x00 (shown as @ in most tools).  Clients and servers can still
interoperate if they both have this broken name.

This patch fixes it to trim the sockaddr_un to the path length so the name
is as you would expect.
2020-05-15 18:25:12 +01:00
..
client unix domain: fix path name length 2020-05-15 18:25:12 +01:00
compression cleaning 2020-01-05 22:17:58 +00:00
server http server: Using default filename also for subdirectories. 2020-03-23 21:03:54 +00:00
header.c cleaning 2020-01-05 22:17:58 +00:00
lextable-strings.h rtos diet: http: remove headers at buildtime according to config 2020-03-04 11:00:04 +00:00
lextable.h minilex: fix ROLE_WS=0 case 2020-03-06 15:23:27 +00:00
minilex.c minilex: fix ROLE_WS=0 case 2020-03-06 15:23:27 +00:00
parsers.c client: secure streams 2020-03-04 12:17:49 +00:00
private-lib-roles-http.h client: unify post tls accept handling 2020-03-07 20:20:07 +00:00