mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-30 20:48:25 +00:00
confile: fix incorrect strncmp
Passing additional configuration options with "--define" was broken.
Result of git bisect:
d899f11b7b
is the first bad commit
Signed-off-by: Felix Abecassis <fabecassis@nvidia.com>
This commit is contained in:
parent
5c784312b9
commit
85d49873a6
@ -2402,7 +2402,7 @@ static struct new_config_item *parse_new_conf_line(char *buffer)
|
||||
line += lxc_char_left_gc(line, strlen(line));
|
||||
|
||||
/* martian option - don't add it to the config itself */
|
||||
if (strncmp(line, "lxc.", strlen(line)))
|
||||
if (strncmp(line, "lxc.", 4))
|
||||
goto on_error;
|
||||
|
||||
ret = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user