diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-15 19:40:18 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-15 19:44:34 +0200 |
commit | fbda85b07826c8edc8fc3f2ecfa8e4ce3ef10f7b (patch) | |
tree | c4fd983643e604547fb0ae1358bdec8094f72523 /src/core | |
parent | udev: use safe_close() where we can (diff) | |
download | systemd-fbda85b07826c8edc8fc3f2ecfa8e4ce3ef10f7b.tar.xz systemd-fbda85b07826c8edc8fc3f2ecfa8e4ce3ef10f7b.zip |
tree-wide: use sockaddr_un_unlink() at two more places where appropriate
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index 43180ad4e6..7b6a84108a 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -894,7 +894,7 @@ static int manager_setup_notify(Manager *m) { return log_error_errno(salen, "Notify socket '%s' not valid for AF_UNIX socket address, refusing.", m->notify_socket); (void) mkdir_parents_label(m->notify_socket, 0755); - (void) unlink(m->notify_socket); + (void) sockaddr_un_unlink(&sa.un); r = bind(fd, &sa.sa, salen); if (r < 0) |