NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/58266 CVS commit: src/sys/kern




> On May 19, 2024, at 9:00 AM, Christos Zoulas <christos%netbsd.org@localhost> wrote:
> 
> The following reply was made to PR lib/58266; it has been noted by GNATS.
> 
> From: "Christos Zoulas" <christos%netbsd.org@localhost>
> To: gnats-bugs%gnats.NetBSD.org@localhost
> Cc: 
> Subject: PR/58266 CVS commit: src/sys/kern
> Date: Sun, 19 May 2024 11:56:55 -0400
> 
> Module Name: src
> Committed By: christos
> Date: Sun May 19 15:56:55 UTC 2024
> 
> Modified Files:
> src/sys/kern: sys_descrip.c
> 
> Log Message:
> PR/58266: Collin Funk: Fail if from == to, like FreeBSD and Linux. The test
> is done in dup3 before any other tests so even if a bad descriptor it is
> passed we will return EINVAL not EBADFD like Linux does.

What is the point of this?  The previous behavior seemed perfectly reasonable, and it’s not like we’re bound by the dictates of POSIX for dup3().

-- thorpej



Home | Main Index | Thread Index | Old Index