]> git.ipfire.org Git - thirdparty/systemd.git/commit
Use sockaddr_un_set_path() in socket_address_parse()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 9 Sep 2020 21:49:51 +0000 (23:49 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 9 Sep 2020 22:46:44 +0000 (00:46 +0200)
commit08224f38acdf5e391dda43e4e004e4ddc5c00302
tree3c7eb4bf60702d068395a6c67dff1d43c9dcf2fb
parenta73569f180dbb8690ae3b350b0609ac0f9705c55
Use sockaddr_un_set_path() in socket_address_parse()

Two functional changes:
- "/" is now refused. The test is adjusted.
- The trailing NUL is *not* included in the returned size for abstract size. The
  comments in sockaddr_un_set_path() indicate that this is the right thing to do,
  and the code in socket_address_parse() wasn't doing that.
src/shared/socket-netlink.c
src/test/test-socket-netlink.c