[systemd-commits] src/loopback-setup.c
Lennart Poettering
lennart at kemper.freedesktop.org
Thu May 20 10:08:48 PDT 2010
src/loopback-setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 68d157d894a988bd070307e0811cc78ffe7476c7
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu May 20 19:08:37 2010 +0200
loopback: negate netlink error code before we pass it to strerror()
diff --git a/src/loopback-setup.c b/src/loopback-setup.c
index 69b79e1..74a1286 100644
--- a/src/loopback-setup.c
+++ b/src/loopback-setup.c
@@ -218,7 +218,7 @@ static int read_response(int fd) {
nlmsgerr = NLMSG_DATA(&response.header);
if (nlmsgerr->error < 0 && nlmsgerr->error != -EEXIST) {
- log_warning("Netlink failure for request %i: %s", response.header.nlmsg_seq, strerror(nlmsgerr->error));
+ log_warning("Netlink failure for request %i: %s", response.header.nlmsg_seq, strerror(-nlmsgerr->error));
return nlmsgerr->error;
}
More information about the systemd-commits
mailing list