]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/lxc_attach.c
fix lxc-attach returned error
[mirror_lxc.git] / src / lxc / lxc_attach.c
index 1d32332996f2c10dc652c81fd82ef2084bd4591e..a012c2c6e0a69dc434ca83027fc8dfa8d9b9e1a8 100644 (file)
@@ -71,7 +71,7 @@ pid_t get_init_pid(const char *name)
 
        if (command.answer.ret) {
                ERROR("failed to retrieve the init pid: %s",
-                     strerror(command.answer.ret));
+                     strerror(-command.answer.ret));
                return -1;
        }