]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man2/close_range.2: EXAMPLES: Correct output of example program
authorQuentin Armitage <quentin@armitage.org.uk>
Mon, 28 Apr 2025 13:50:48 +0000 (14:50 +0100)
committerAlejandro Colomar <alx@kernel.org>
Thu, 1 May 2025 21:11:28 +0000 (23:11 +0200)
The output shown for the example program listed /tmp/b twice;
the second /tmp/b should be /tmp/c.

Fixes: 336bd62ba24c (2021-03-21; "close_range.2: Include a better example program")
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Message-ID: <e8519ea77798c68944717bc6437052a1119a911f.camel@armitage.org.uk>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/close_range.2

index c0ae95e2adae9fec9cb2cda38229b60e0b832ec6..ea1a1d2ec77a4242a9436b8243ae7667e3eb76d7 100644 (file)
@@ -185,7 +185,7 @@ The following example demonstrates the use of the program:
 /proc/self/fd/2 ==> /dev/pts/1
 /proc/self/fd/3 ==> /tmp/a
 /proc/self/fd/4 ==> /tmp/b
-/proc/self/fd/5 ==> /tmp/b
+/proc/self/fd/5 ==> /tmp/c
 /proc/self/fd/6 ==> /proc/9005/fd
 ========= About to call close_range() =======
 /proc/self/fd/0 ==> /dev/pts/1