From: Quentin Armitage Date: Mon, 28 Apr 2025 13:50:48 +0000 (+0100) Subject: man/man2/close_range.2: EXAMPLES: Correct output of example program X-Git-Tag: man-pages-6.14~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71a25207293288a5bf9e4d6e9570c6946dfdcbf1;p=thirdparty%2Fman-pages.git man/man2/close_range.2: EXAMPLES: Correct output of example program 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 Message-ID: Signed-off-by: Alejandro Colomar --- diff --git a/man/man2/close_range.2 b/man/man2/close_range.2 index c0ae95e2a..ea1a1d2ec 100644 --- a/man/man2/close_range.2 +++ b/man/man2/close_range.2 @@ -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