]> err.no Git - systemd/commitdiff
loopback: negate netlink error code before we pass it to strerror()
authorLennart Poettering <lennart@poettering.net>
Thu, 20 May 2010 17:08:37 +0000 (19:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 20 May 2010 17:08:37 +0000 (19:08 +0200)
src/loopback-setup.c

index 69b79e1b7c2ffa7e28ef9568cb230e73c7da1051..74a1286807f8f7c69133bf1e8ac6ce1c96830f58 100644 (file)
@@ -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;
         }