crun
crun copied to clipboard
libcrun: add crun_error_get_errno
trafficstars
Summary by Sourcery
Improve error handling by extracting and restoring original errno from libcrun error objects across cgroup setup, directory creation, and filesystem path operations.
Enhancements:
- Use
crun_error_get_errnoto retrieve and restore the original errno when cgroup directory creation fails. - Preserve and reuse the saved errno in the directory creation helper before reporting errors.
- Restore errno from libcrun error objects in the masked path setup to ensure consistent error evaluation.