summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-10-24 18:48:41 +0200
committerThomas Haller <thaller@redhat.com>2018-10-25 15:24:38 +0200
commitac90593cc2dc75d935db00e8bad0e5ddedacbdb6 (patch)
tree47fd51e0b3dd88a152bea0c0ba9c4f37e3895c08 /man
parentd9e931acaf65b8454f8cfdf4ae9937af9c00c1db (diff)
man: fix "no-auto-default" state dir in NetworkManager.conf manual
Quote from `man NetworkManager.conf`: When the default wired connection is deleted or saved to a new persistent connection by a plugin, the device is added to a list in the file /run/NetworkManager/no-auto-default.state to prevent creating the default connection for that device again. "/run" is obviously wrong. Fix it. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/33
Diffstat (limited to 'man')
-rw-r--r--man/NetworkManager.conf.xml2
-rw-r--r--man/common.ent.in1
-rw-r--r--man/meson.build1
3 files changed, 3 insertions, 1 deletions
diff --git a/man/NetworkManager.conf.xml b/man/NetworkManager.conf.xml
index 1e1d0aab15..8773e6e916 100644
--- a/man/NetworkManager.conf.xml
+++ b/man/NetworkManager.conf.xml
@@ -204,7 +204,7 @@ plugins-=remove-me
<para>When the default wired connection is deleted or saved
to a new persistent connection by a plugin, the device is
added to a list in the file
- <filename>/run/NetworkManager/no-auto-default.state</filename>
+ <filename>&nmstatedir;/no-auto-default.state</filename>
to prevent creating the default connection for that device
again.</para>
<para>See <xref linkend="device-spec"/> for the syntax how to
diff --git a/man/common.ent.in b/man/common.ent.in
index ddfbb69a69..9632b4efba 100644
--- a/man/common.ent.in
+++ b/man/common.ent.in
@@ -2,6 +2,7 @@
<!ENTITY NM_VERSION "@NM_VERSION@">
<!ENTITY sysconfdir "@sysconfdir@">
<!ENTITY nmrundir "@nmrundir@">
+<!ENTITY nmstatedir "@nmstatedir@">
<!ENTITY NM_CONFIG_DEFAULT_MAIN_AUTH_POLKIT_TEXT "@NM_CONFIG_DEFAULT_MAIN_AUTH_POLKIT_TEXT@">
<!ENTITY NM_CONFIG_DEFAULT_LOGGING_BACKEND_TEXT "@NM_CONFIG_DEFAULT_LOGGING_BACKEND_TEXT@">
<!ENTITY NM_CONFIG_DEFAULT_LOGGING_AUDIT_TEXT "@NM_CONFIG_DEFAULT_LOGGING_AUDIT_TEXT@">
diff --git a/man/meson.build b/man/meson.build
index 21fac21d1d..4c33ff30e8 100644
--- a/man/meson.build
+++ b/man/meson.build
@@ -2,6 +2,7 @@ common_conf = configuration_data()
common_conf.set('NM_VERSION', nm_version)
common_conf.set('sysconfdir', nm_sysconfdir)
common_conf.set('nmrundir', nm_pkgrundir)
+common_conf.set('nmstatedir', nm_pkgstatedir)
common_conf.set('NM_CONFIG_DEFAULT_MAIN_AUTH_POLKIT_TEXT', config_default_main_auth_polkit)
common_conf.set('NM_CONFIG_DEFAULT_LOGGING_BACKEND_TEXT', config_logging_backend_default)
common_conf.set('NM_CONFIG_DEFAULT_LOGGING_AUDIT_TEXT', config_default_logging_audit)