crun icon indicating copy to clipboard operation
crun copied to clipboard

libcrun: add crun_error_get_errno

Open eriksjolund opened this issue 5 months ago • 3 comments
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_errno to 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.

eriksjolund avatar Jun 17 '25 06:06 eriksjolund