valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0616-doc-fix-links-to-binfmt_misc-kernel-documentation.patch

a9339c
From fdc7b6b2af0b80e13bebae8d2f461f54cb71c9d2 Mon Sep 17 00:00:00 2001
a9339c
From: Jan Synacek <jsynacek@redhat.com>
a9339c
Date: Fri, 27 Apr 2018 08:57:08 +0200
a9339c
Subject: [PATCH] doc: fix links to binfmt_misc kernel documentation
a9339c
a9339c
Resolves: #1572244
a9339c
---
a9339c
 man/binfmt.d.xml                        | 2 +-
a9339c
 src/test/test-util.c                    | 2 +-
a9339c
 units/proc-sys-fs-binfmt_misc.automount | 2 +-
a9339c
 units/proc-sys-fs-binfmt_misc.mount     | 2 +-
a9339c
 units/systemd-binfmt.service.in         | 2 +-
a9339c
 5 files changed, 5 insertions(+), 5 deletions(-)
a9339c
a9339c
diff --git a/man/binfmt.d.xml b/man/binfmt.d.xml
a9339c
index 5b63cfb4c..1a57517d0 100644
a9339c
--- a/man/binfmt.d.xml
a9339c
+++ b/man/binfmt.d.xml
a9339c
@@ -67,7 +67,7 @@
a9339c
 
a9339c
     <para>Each file contains a list of binfmt_misc kernel binary
a9339c
     format rules. Consult 
a9339c
-    url="https://www.kernel.org/doc/Documentation/binfmt_misc.txt">binfmt_misc.txt</ulink>
a9339c
+    url="https://www.kernel.org/doc/Documentation/admin-guide/binfmt-misc.rst">binfmt_misc.rst</ulink>
a9339c
     for more information on registration of additional binary formats
a9339c
     and how to write rules.</para>
a9339c
 
a9339c
diff --git a/src/test/test-util.c b/src/test/test-util.c
a9339c
index fcf5416c0..f2c52edce 100644
a9339c
--- a/src/test/test-util.c
a9339c
+++ b/src/test/test-util.c
a9339c
@@ -1213,7 +1213,7 @@ static void test_files_same(void) {
a9339c
 
a9339c
 static void test_is_valid_documentation_url(void) {
a9339c
         assert_se(documentation_url_is_valid("http://www.freedesktop.org/wiki/Software/systemd"));
a9339c
-        assert_se(documentation_url_is_valid("https://www.kernel.org/doc/Documentation/binfmt_misc.txt"));
a9339c
+        assert_se(documentation_url_is_valid("https://www.kernel.org/doc/Documentation/admin-guide/binfmt-misc.rst"));
a9339c
         assert_se(documentation_url_is_valid("file:/foo/foo"));
a9339c
         assert_se(documentation_url_is_valid("man:systemd.special(7)"));
a9339c
         assert_se(documentation_url_is_valid("info:bar"));
a9339c
diff --git a/units/proc-sys-fs-binfmt_misc.automount b/units/proc-sys-fs-binfmt_misc.automount
a9339c
index 6be38937b..b28bf9bb8 100644
a9339c
--- a/units/proc-sys-fs-binfmt_misc.automount
a9339c
+++ b/units/proc-sys-fs-binfmt_misc.automount
a9339c
@@ -7,7 +7,7 @@
a9339c
 
a9339c
 [Unit]
a9339c
 Description=Arbitrary Executable File Formats File System Automount Point
a9339c
-Documentation=https://www.kernel.org/doc/Documentation/binfmt_misc.txt
a9339c
+Documentation=https://www.kernel.org/doc/Documentation/admin-guide/binfmt-misc.rst
a9339c
 Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
a9339c
 DefaultDependencies=no
a9339c
 Before=sysinit.target
a9339c
diff --git a/units/proc-sys-fs-binfmt_misc.mount b/units/proc-sys-fs-binfmt_misc.mount
a9339c
index 8c7c38631..8d22dc908 100644
a9339c
--- a/units/proc-sys-fs-binfmt_misc.mount
a9339c
+++ b/units/proc-sys-fs-binfmt_misc.mount
a9339c
@@ -7,7 +7,7 @@
a9339c
 
a9339c
 [Unit]
a9339c
 Description=Arbitrary Executable File Formats File System
a9339c
-Documentation=https://www.kernel.org/doc/Documentation/binfmt_misc.txt
a9339c
+Documentation=https://www.kernel.org/doc/Documentation/admin-guide/binfmt-misc.rst
a9339c
 Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
a9339c
 DefaultDependencies=no
a9339c
 
a9339c
diff --git a/units/systemd-binfmt.service.in b/units/systemd-binfmt.service.in
a9339c
index 02dfe774d..e066f7fec 100644
a9339c
--- a/units/systemd-binfmt.service.in
a9339c
+++ b/units/systemd-binfmt.service.in
a9339c
@@ -8,7 +8,7 @@
a9339c
 [Unit]
a9339c
 Description=Set Up Additional Binary Formats
a9339c
 Documentation=man:systemd-binfmt.service(8) man:binfmt.d(5)
a9339c
-Documentation=https://www.kernel.org/doc/Documentation/binfmt_misc.txt
a9339c
+Documentation=https://www.kernel.org/doc/Documentation/admin-guide/binfmt-misc.rst
a9339c
 DefaultDependencies=no
a9339c
 Conflicts=shutdown.target
a9339c
 After=systemd-readahead-collect.service systemd-readahead-replay.service proc-sys-fs-binfmt_misc.automount