mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-31 13:10:35 +00:00
Allow more then one --conf-file on the command line.
This commit is contained in:
2 files changed
+11
-5
No files matched your search
+8
-3
@@ -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