diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-05-10 16:23:05 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-05-13 14:48:27 +0200 |
commit | 2c032478fca9c57526faec422ffbb87ecafc1251 (patch) | |
tree | 6301ace59a2476e4422cfac79f5f76d1f01dd719 /src/basic/fileio.c | |
parent | fileio: propagate original error if we notice AF_UNIX connect() is not going ... (diff) | |
download | systemd-2c032478fca9c57526faec422ffbb87ecafc1251.tar.xz systemd-2c032478fca9c57526faec422ffbb87ecafc1251.zip |
fileio: fix error propagation
Diffstat (limited to '')
-rw-r--r-- | src/basic/fileio.c | 2 |
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) |