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

Fixes #38236 - copy /run/containers/0/auth.json only if it exists #11323

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pmoravec
Copy link
Member

What are the changes introduced in this pull request?

Don't fail on copy /run/containers/0/auth.json to /etc/flatpak/oci-auth.json if the source file does not exist - its presence is optional.

Considerations taken when implementing this change?

There are a few options how to fix this, i.e. redirect stderr to /dev/null. I chose this cp option:

   -u, --update
          copy only when the SOURCE file is newer than the destination file or when the destination file is missing

for its positive side-effect: dont overwrite oci-auth.json if it has a newer content (at least I see this as a feature and not a bug of the chosen fix - let me see if you think otherwise).

What are the testing steps for this pull request?

Ensure no /run/containers/0/auth.json is present on a Host with podman and flatpak (this is default), and apply the job template to the Host.

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.

1 participant