git: 08adf7c06815 - stable/15 - pddupfd.2: fix errno value returned for non-procdesc argument

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sun, 16 Aug 2026 02:47:21 UTC
The branch stable/15 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=08adf7c06815d4ea6d6cd592cbc629f09e27194d

commit 08adf7c06815d4ea6d6cd592cbc629f09e27194d
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-08-05 16:33:19 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-08-16 02:41:39 +0000

    pddupfd.2: fix errno value returned for non-procdesc argument
    
    (cherry picked from commit dfdd8af5a8de8f193747f5ec13cd501106823d2d)
---
 lib/libsys/pdfork.2 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/libsys/pdfork.2 b/lib/libsys/pdfork.2
index 6f577427a716..3c18a0f4130c 100644
--- a/lib/libsys/pdfork.2
+++ b/lib/libsys/pdfork.2
@@ -391,16 +391,16 @@ returns the following errors:
 The
 .Fa flags
 argument is not zero.
+.It Bq Er EINVAL
+The file descriptor
+.Fa fd
+is not a process file descriptor.
 .It Bq Er ESRCH
 The process specified by the file descriptor
 .Fa fd
 exited.
 .It Bq Er EBADF
 The file descriptor
-.Fa fd
-is not a process file descriptor.
-.It Bq Er EBADF
-The file descriptor
 .Fa remotefd
 is not a valid file descriptor in the specified process.
 .It Bq Er ENOENT