confile: cleanup get_config_idmaps()

parent 78205814
...@@ -3815,7 +3815,7 @@ static int get_config_idmaps(const char *key, char *retv, int inlen, ...@@ -3815,7 +3815,7 @@ static int get_config_idmaps(const char *key, char *retv, int inlen,
(map->idtype == ID_TYPE_UID) ? 'u' : 'g', (map->idtype == ID_TYPE_UID) ? 'u' : 'g',
map->nsid, map->hostid, map->range); map->nsid, map->hostid, map->range);
if (ret < 0 || ret >= __LXC_IDMAP_STR_BUF) if (ret < 0 || ret >= __LXC_IDMAP_STR_BUF)
return -1; return ret_errno(EIO);
strprint(retv, inlen, "%s%s", buf, (listlen-- > 1) ? "\n" : ""); strprint(retv, inlen, "%s%s", buf, (listlen-- > 1) ? "\n" : "");
} }
......
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