lxc/0080-lxc-fix-compile-error.patch

36 lines
1009 B
Diff
Raw Normal View History

2019-12-25 15:57:42 +08:00
From b088aaa97b760914234c8a16d89cea86ddb20cbd Mon Sep 17 00:00:00 2001
2019-09-30 11:03:07 -04:00
From: tanyifeng <tanyifeng1@huawei.com>
Date: Mon, 8 Apr 2019 08:29:46 -0400
2019-12-25 15:57:42 +08:00
Subject: [PATCH 080/131] lxc: fix compile error
2019-09-30 11:03:07 -04:00
Signed-off-by: tanyifeng <tanyifeng1@huawei.com>
Signed-off-by: LiFeng <lifeng68@huawei.com>
---
src/lxc/utils.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/lxc/utils.c b/src/lxc/utils.c
2019-12-25 15:57:42 +08:00
index 7b82d060..fd6075f8 100644
2019-09-30 11:03:07 -04:00
--- a/src/lxc/utils.c
+++ b/src/lxc/utils.c
@@ -1874,7 +1874,6 @@ int lxc_setup_keyring(void)
int lxc_setup_env_home(uid_t uid)
{
#define __PASSWD_FILE__ "/etc/passwd"
- int ret = 0;
char *homedir = "/"; // default home dir is /
FILE *stream = NULL;
struct passwd pw, *pwbufp = NULL;
@@ -1882,7 +1881,7 @@ int lxc_setup_env_home(uid_t uid)
stream = fopen_cloexec(__PASSWD_FILE__, "r");
if (stream == NULL) {
- SYSWARN("Failed to open %s: %s", __PASSWD_FILE__);
+ SYSWARN("Failed to open %s", __PASSWD_FILE__);
goto set_env;
}
--
2019-12-25 15:57:42 +08:00
2.23.0
2019-09-30 11:03:07 -04:00