git: 84b512720455 - stable/14 - pdgetpid(2): switch back returning EBADF for non-procdesc fd
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Oct 2025 00:30:06 UTC
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=84b51272045564ef63787423105334176aa6014e commit 84b51272045564ef63787423105334176aa6014e Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2025-09-13 19:23:27 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2025-10-13 00:23:43 +0000 pdgetpid(2): switch back returning EBADF for non-procdesc fd (cherry picked from commit a85525a5c8b28f1516d49e5d6ae5842873c24643) --- sys/kern/sys_procdesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sys_procdesc.c b/sys/kern/sys_procdesc.c index ef8c397a05b6..b2b638b6f99f 100644 --- a/sys/kern/sys_procdesc.c +++ b/sys/kern/sys_procdesc.c @@ -178,7 +178,7 @@ kern_pdgetpid(struct thread *td, int fd, const cap_rights_t *rightsp, if (error) return (error); if (fp->f_type != DTYPE_PROCDESC) { - error = EINVAL; + error = EBADF; goto out; } *pidp = procdesc_pid(fp);