summaryrefslogtreecommitdiffstats
path: root/src/nspawn
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-10-15 19:40:18 +0200
committerLennart Poettering <lennart@poettering.net>2018-10-15 19:44:34 +0200
commitfbda85b07826c8edc8fc3f2ecfa8e4ce3ef10f7b (patch)
treec4fd983643e604547fb0ae1358bdec8094f72523 /src/nspawn
parentudev: use safe_close() where we can (diff)
downloadsystemd-fbda85b07826c8edc8fc3f2ecfa8e4ce3ef10f7b.tar.xz
systemd-fbda85b07826c8edc8fc3f2ecfa8e4ce3ef10f7b.zip
tree-wide: use sockaddr_un_unlink() at two more places where appropriate
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 49b8ba466a..a6802d6938 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -2824,7 +2824,7 @@ static int setup_sd_notify_child(void) {
return log_error_errno(errno, "Failed to allocate notification socket: %m");
(void) mkdir_parents(NSPAWN_NOTIFY_SOCKET_PATH, 0755);
- (void) unlink(NSPAWN_NOTIFY_SOCKET_PATH);
+ (void) sockaddr_un_unlink(&sa.un);
r = bind(fd, &sa.sa, SOCKADDR_UN_LEN(sa.un));
if (r < 0) {