mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-20 15:20:42 +02:00
dnsmasq: only pass confdir if it exists (rh #873621)
dnsmasq exits if the --conf-dir does not exist. Which isn't very useful. Inspired by Federico Simoncelli <fsimonce@redhat.com>: https://mail.gnome.org/archives/networkmanager-list/2012-June/msg00011.html
This commit is contained in:
parent
fcdbf17f35
commit
a455d42de2
1 changed files with 5 additions and 1 deletions
|
|
@ -317,7 +317,11 @@ update (NMDnsPlugin *plugin,
|
|||
argv[idx++] = "--conf-file=" CONFFILE;
|
||||
argv[idx++] = "--cache-size=400";
|
||||
argv[idx++] = "--proxy-dnssec"; /* Allow DNSSEC to pass through */
|
||||
argv[idx++] = "--conf-dir=" CONFDIR;
|
||||
|
||||
/* dnsmasq exits if the conf dir is not present */
|
||||
if (g_file_test (CONFDIR, G_FILE_TEST_IS_DIR))
|
||||
argv[idx++] = "--conf-dir=" CONFDIR;
|
||||
|
||||
argv[idx++] = NULL;
|
||||
g_warn_if_fail (idx <= G_N_ELEMENTS (argv));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue