Skip to content

in try_read_file_sync - treat ENOTDIR as ENOENT #9044

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2025

Conversation

dannyzaken
Copy link
Member

Describe the Problem

Explain the Changes

  1. Added a function in fs_utils is_not_exist_err_code that checks if the error code is ENOTDIR or ENOTDIR

Issues: Fixed #xxx / Gap #xxx

  1. related to https://issues.redhat.com/browse/DFBUGS-1466

Testing Instructions:

  • Doc added/updated
  • Tests added

ENOTDIR is relevant for cases where a directory in the middle of the path is a file and not a directory

Signed-off-by: Danny Zaken <dannyzaken@gmail.com>
@dannyzaken dannyzaken merged commit c42c9ac into noobaa:master May 28, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants