From: Yu Watanabe Date: Wed, 17 Dec 2025 16:25:58 +0000 (+0900) Subject: sandbox: fix wrong errno passed to OSError() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae24c527d7f5205fc0c8283c4a212934d8b183a9;p=thirdparty%2Fmkosi.git sandbox: fix wrong errno passed to OSError() --- diff --git a/mkosi/sandbox.py b/mkosi/sandbox.py index d6dace86e..7337b59fb 100755 --- a/mkosi/sandbox.py +++ b/mkosi/sandbox.py @@ -168,7 +168,7 @@ def oserror(syscall: str, filename: str = "", errno: int = 0) -> None: if errno == ENOSYS and is_main(): print(ENOSYS_MSG.format(syscall=syscall, kver=os.uname().version), file=sys.stderr) - raise OSError(ctypes.get_errno(), os.strerror(errno), filename or None) + raise OSError(errno, os.strerror(errno), filename or None) def unshare(flags: int) -> None: