]> git.ipfire.org Git - thirdparty/systemd.git/commit
socket-util: add new sockaddr_un_unlink() helper
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Oct 2018 10:06:07 +0000 (12:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 15 Oct 2018 17:35:00 +0000 (19:35 +0200)
commit9f20fc28f0a624ea49ac941bcde57b5435a01b6e
treebf447f0960ab1fe5cf5c76b13e6b38e309d4a531
parent242c41b850af8ebc0c7a0cd44be057e50b5a027a
socket-util: add new sockaddr_un_unlink() helper

The helper is supposed to properly handle cases where .sun_path does not
contain a NUL byte, and thus copies out the path suffix a NUL as
necessary.

This also reworks the more specific socket_address_unlink() to be a
wrapper around the more generic sockaddr_un_unlink()
src/basic/socket-util.c
src/basic/socket-util.h