]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
utmp.h: Don't fail when utmpx.h isn't present
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 10 Jan 2013 22:10:51 +0000 (17:10 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 10 Jan 2013 22:41:40 +0000 (17:41 -0500)
Following a comment on the mailing-list, I made utmp.h return -1
when it's disabled, the problem with that is that it prevents the
container from starting completely, which isn't quite what I wanted.

This change makes the function succeed, the container will therefore
start but without utmp handler.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/utmp.h

index 1bd7c23dbed02f983d18fd050556302fdec00bd7..ad4a8ab38b5dda8c9858665265570f650297c6eb 100644 (file)
@@ -32,6 +32,6 @@ int lxc_utmp_mainloop_add(struct lxc_epoll_descr *descr,
 #else
 static inline int lxc_utmp_mainloop_add(struct lxc_epoll_descr *descr,
                          struct lxc_handler *handler) {
-               return -1;
+               return 0;
 }
 #endif