Skip to content
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

Use glnx_opendirat() and glnx_opendirat_with_errno() where possible #5527

Merged
merged 3 commits into from
Sep 22, 2023

Conversation

doraskayo
Copy link
Contributor

@doraskayo doraskayo commented Sep 22, 2023

Follow-up to #5510 (comment). Only build-tested.

CC: @smcv


  • instance: Use glnx_opendirat() where possible

    Doing so adds the following flags to the openat() call:
    O_RDONLY | O_NONBLOCK | O_NOCTTY

    And removes the following flag: O_PATH

    Also let libglnx handle the error message formatting.

  • portal: Use glnx_opendirat()

    Also print error message in case the operation fails.

    No change in behavior apart from printing the error message.

  • revokefs: Use glnx_opendirat_with_errno()

    No change in behavior.

@doraskayo doraskayo changed the title Use glnx_opendirat and glnx_opendirat_with_errno where possible Use glnx_opendirat() and glnx_opendirat_with_errno() where possible Sep 22, 2023
@doraskayo doraskayo force-pushed the glnx-opendirat branch 2 times, most recently from af31841 to 9a4b615 Compare September 22, 2023 12:55
Doing so adds the following flags to the openat() call:
O_RDONLY | O_NONBLOCK | O_NOCTTY

And removes the following flag: O_PATH

Also let libglnx handle the error message formatting.
Also print error message in case the operation fails.

No change in behavior apart from printing the error message.
@smcv smcv merged commit f66b1ec into flatpak:main Sep 22, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants