[lxc-devel] [lxcfs/master] modify default liblxcfs.so path, becasue the default prefix is /usr/l…

elianka on Github lxc-bot at linuxcontainers.org
Fri Jun 30 08:49:37 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 543 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170630/a402cf6d/attachment.bin>
-------------- next part --------------
From 3682035d58988d9edbe3b044259014b861700d29 Mon Sep 17 00:00:00 2001
From: Daniel Kang <kangliang424 at gmail.com>
Date: Fri, 30 Jun 2017 16:45:12 +0800
Subject: [PATCH] modify default liblxcfs.so path, becasue the default prefix
 is /usr/local, and liblxcfs.so will be installed in /usr/local/lib/ by
 default.

Signed-off-by: Daniel Kang <kangliang424 at gmail.com>
---
 lxcfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxcfs.c b/lxcfs.c
index fb0c05c..cb5ff2d 100644
--- a/lxcfs.c
+++ b/lxcfs.c
@@ -86,7 +86,7 @@ static void do_reload(void)
 		goto good;
 	}
 
-	dlopen_handle = dlopen("/usr/lib/lxcfs/liblxcfs.so", RTLD_LAZY);
+	dlopen_handle = dlopen("/usr/local/lib/lxcfs/liblxcfs.so", RTLD_LAZY);
 	if (!dlopen_handle) {
 		lxcfs_error("Failed to open liblxcfs.so: %s.\n", dlerror());
 		_exit(1);


More information about the lxc-devel mailing list