mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-30 21:05:59 +00:00
remove unused _config_console function
it's usage was removed by patch
28a4b0e55c
"open the console later"
Signed-off-by: Michel Normand <normand@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
parent
26b2d15268
commit
dcb7e5d5d2
@ -620,21 +620,6 @@ static int config_cap_drop(const char *key, char *value,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int _config_console(const char *key, char *value, struct lxc_conf *lxc_conf)
|
||||
{
|
||||
int fd;
|
||||
|
||||
fd = open(value, O_CLOEXEC | O_RDWR | O_CREAT | O_APPEND, 0600);
|
||||
if (fd < 0) {
|
||||
SYSERROR("failed to open '%s'", value);
|
||||
return -1;
|
||||
}
|
||||
|
||||
lxc_conf->console.peer = fd;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int config_console(const char *key, char *value,
|
||||
struct lxc_conf *lxc_conf)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user