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

Konstantin Belousov <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a8124b9.43744.1eef8a15__38376.6253640474$1786848884$gmane$org@gitrepo.freebsd.org>
The branch stable/15 has been updated by kib:

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

commit 08adf7c06815d4ea6d6cd592cbc629f09e27194d
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-08-05 16:33:19 +0000
Commit:     Konstantin Belousov <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.