Skip to content

Conversation

@corhere
Copy link
Contributor

@corhere corhere commented Feb 3, 2023

The error returned from "os/exec".Command when attempting to execute a directory has been changed from syscall.EACCESS to syscall.EISDIR on Go 1.20. golang/go@2b8f214 Consequently, any runc runtime built against Go 1.20 will return an error containing 'is a directory' and not 'permission denied'. Update the string matching so the CLI exits with status code 126 on 'is a directory' errors (EISDIR) in addition to 'permission denied' (EACCESS).

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

The error returned from "os/exec".Command when attempting to execute a
directory has been changed from syscall.EACCESS to syscall.EISDIR on
Go 1.20. golang/go@2b8f214
Consequently, any runc runtime built against Go 1.20 will return an
error containing 'is a directory' and not 'permission denied'. Update
the string matching so the CLI exits with status code 126 on 'is a
directory' errors (EISDIR) in addition to 'permission denied' (EACCESS).

Signed-off-by: Cory Snider <csnider@mirantis.com>
@corhere corhere mentioned this pull request Feb 3, 2023
5 tasks
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov-commenter
Copy link

codecov-commenter commented Feb 3, 2023

Codecov Report

Merging #4001 (9b5ceb5) into master (e92dd87) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4001      +/-   ##
==========================================
- Coverage   59.16%   59.16%   -0.01%     
==========================================
  Files         287      287              
  Lines       24723    24724       +1     
==========================================
  Hits        14627    14627              
  Misses       9212     9212              
- Partials      884      885       +1     

@thaJeztah
Copy link
Member

Don't merge yet; discussing if we already want to create a 23.0 branch or continue working from master (as long as we can)

(of course we can still create a branch later, but thought it'd be good to discuss)

@thaJeztah
Copy link
Member

I created a "23.0" branch for 23.0.x patch releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants