]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: fix references to gethostname/sethostname
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Fri, 23 Jun 2023 14:34:55 +0000 (16:34 +0200)
committerMike Yuan <me@yhndnzj.com>
Fri, 23 Jun 2023 15:38:05 +0000 (23:38 +0800)
man/org.freedesktop.hostname1.xml

index c5abd2511cf68cf7838abbff15e0f9bfe9b5c296..9eb2f69c3bcf96dd00fcbe256bd66036a1148566 100644 (file)
@@ -205,7 +205,7 @@ node /org/freedesktop/hostname1 {
     set the hostname, this static hostname <emphasis>has the highest priority</emphasis>.</para>
 
     <para>The <varname>Hostname</varname> property exposes the actual hostname configured in the kernel via
-    <citerefentry project="man-pages"><refentrytitle>sethostname</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
+    <citerefentry project="man-pages"><refentrytitle>sethostname</refentrytitle><manvolnum>2</manvolnum></citerefentry>.
     It can be different from the static hostname. This property is never empty.</para>
 
     <para>The <varname>PrettyHostname</varname> property exposes the <emphasis>pretty hostname</emphasis>
@@ -259,7 +259,7 @@ node /org/freedesktop/hostname1 {
 
     <para>Applications may read the hostname data directly if hostname change notifications
     are not necessary. Use
-    <citerefentry project="man-pages"><refentrytitle>gethostname</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
+    <citerefentry project="man-pages"><refentrytitle>gethostname</refentrytitle><manvolnum>2</manvolnum></citerefentry>,
     <filename>/etc/hostname</filename> (possibly with per-distribution fallbacks), and
     <citerefentry><refentrytitle>machine-info</refentrytitle><manvolnum>3</manvolnum></citerefentry>
     for that. For more information on these files and syscalls see the respective man pages.</para>