summaryrefslogtreecommitdiffstats
path: root/src/basic/fileio.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-05-10 16:23:05 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-05-13 14:48:27 +0200
commit2c032478fca9c57526faec422ffbb87ecafc1251 (patch)
tree6301ace59a2476e4422cfac79f5f76d1f01dd719 /src/basic/fileio.c
parentfileio: propagate original error if we notice AF_UNIX connect() is not going ... (diff)
downloadsystemd-2c032478fca9c57526faec422ffbb87ecafc1251.tar.xz
systemd-2c032478fca9c57526faec422ffbb87ecafc1251.zip
fileio: fix error propagation
Diffstat (limited to '')
-rw-r--r--src/basic/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/fileio.c b/src/basic/fileio.c
index 1483c76228..c2497ff856 100644
--- a/src/basic/fileio.c
+++ b/src/basic/fileio.c
@@ -809,7 +809,7 @@ int read_full_file_full(
return r;
if (bind(sk, &bsa.sa, r) < 0)
- return r;
+ return -errno;
}
if (connect(sk, &sa.sa, SOCKADDR_UN_LEN(sa.un)) < 0)