From cf7e9496e92e496840c5cd235f4cd52a6789a11d Mon Sep 17 00:00:00 2001 From: PancakeTAS Date: Thu, 25 Jun 2026 12:33:32 +0200 Subject: Generalize device class --- src/helper/ioctl.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/helper') diff --git a/src/helper/ioctl.cpp b/src/helper/ioctl.cpp index 21a1ccb..8889efc 100644 --- a/src/helper/ioctl.cpp +++ b/src/helper/ioctl.cpp @@ -19,6 +19,13 @@ Exception::Exception(int fd, unsigned long op) this->m_fd, this->m_op ); break; + case EACCES: + this->m_code = Error::NoAccess; + this->m_what = std::format( + "ioctl({}, 0x{:x}) failed: Permission denied", + this->m_fd, this->m_op + ); + break; case EINVAL: case ENOTTY: this->m_code = Error::InvalidArgument; -- cgit v1.3.1