git: DragonFly_RELEASE_6_4 kern: Fix mmioctl() to return ENOTTY for unknown devices
Aaron LI
aly at crater.dragonflybsd.org
Thu Oct 1 18:44:59 PDT 2026
commit e13f232a054d1e45a455142b3df9345870e03406
Author: Aaron LI <aly at aaronly.me>
Date: Thu Oct 1 20:53:28 2026 +0800
kern: Fix mmioctl() to return ENOTTY for unknown devices
The default case for unknown devices handles /dev/null and previously
returned ENODEV for tcsetattr/tcgetattr/tc* requests, which should be
ENOTTY as specified by POSIX (as well as documented in the man pages).
Fix the bug by correcting mmioctl() to return ENOTTY in the default
case.
Patch-by: jpikin, sigttou (David Bidner)
Bug: https://bugs.dragonflybsd.org/issues/3252
Summary of changes:
sys/kern/kern_memio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e13f232a054d1e45a455142b3df9345870e03406
--
DragonFly BSD source repository
More information about the Commits
mailing list