confile: config_tty()

parent 4ad9cd26
...@@ -1401,13 +1401,14 @@ freak_out: ...@@ -1401,13 +1401,14 @@ freak_out:
static int config_tty(const char *key, const char *value, static int config_tty(const char *key, const char *value,
struct lxc_conf *lxc_conf) struct lxc_conf *lxc_conf)
{ {
if (config_value_empty(value)) /* Set config value to default. */
if (config_value_empty(value)) {
lxc_conf->tty = 0;
return 0; return 0;
}
if (lxc_safe_uint(value, &lxc_conf->tty) < 0) /* Parse new config value. */
return -1; return lxc_safe_uint(value, &lxc_conf->tty);
return 0;
} }
static int config_ttydir(const char *key, const char *value, static int config_ttydir(const char *key, const char *value,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment