]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
Don't expand LIBDIR for liblxcfs.so, always use /usr/lib/lxcfs/
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 9 Feb 2016 19:45:48 +0000 (11:45 -0800)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 9 Feb 2016 19:45:48 +0000 (11:45 -0800)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
lxcfs.c

diff --git a/lxcfs.c b/lxcfs.c
index b36986cd97deba4f691a29132dd5af9f1ac91e2e..a63f36af82f9655d9b540df6d2ec38a85b611924 100644 (file)
--- a/lxcfs.c
+++ b/lxcfs.c
@@ -81,8 +81,7 @@ static void do_reload(void)
        if (dlopen_handle)
                goto good;
 
-       /* Fall back to loading from /usr/lib/lxcfs/liblxcfs.so */
-       dlopen_handle = dlopen(LIBDIR "lxcfs/liblxcfs.so", RTLD_LAZY);
+       dlopen_handle = dlopen("/usr/lib/lxcfs/liblxcfs.so", RTLD_LAZY);
        if (!dlopen_handle) {
                fprintf(stderr, "Failed to open liblxcfs\n");
                _exit(1);