mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Allow more then one --conf-file on the command line.
This commit is contained in:
11
src/option.c
11
src/option.c
@@ -5012,9 +5012,14 @@ void read_opts(int argc, char **argv, char *compile_opts)
|
||||
}
|
||||
else if (option == 'C')
|
||||
{
|
||||
if (conffile)
|
||||
free(conffile);
|
||||
conffile = opt_string_alloc(arg);
|
||||
if (!conffile)
|
||||
conffile = opt_string_alloc(arg);
|
||||
else
|
||||
{
|
||||
char *extra = opt_string_alloc(arg);
|
||||
one_file(extra, 0);
|
||||
free(extra);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user