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

archive: detect symlink target changes #2199

Merged

Conversation

giuseppe
Copy link
Member

improve detection of changes in symlinks when both the size and the mtime were changed.

Previously, the detection relied on a difference in either size or atime/mtime to identify changes in a symlink. This is not enough, as the atime/mtime and it size could be left unaltered while only its target changes.

Fixes: containers/buildah#5861

improve detection of changes in symlinks when both the size and the
mtime were changed.

Previously, the detection relied on a difference in either size or
atime/mtime to identify changes in a symlink.  This is not enough, as
the atime/mtime and it size could be left unaltered while only its
target changes.

Fixes: containers/buildah#5861

Signed-off-by: Giuseppe Scrivano <[email protected]>
Copy link
Contributor

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

Looks sane to me.

Copy link
Contributor

openshift-ci bot commented Dec 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, giuseppe

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rhatdan
Copy link
Member

rhatdan commented Dec 18, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Dec 18, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 074f966 into containers:main Dec 18, 2024
20 checks passed
@nalind nalind mentioned this pull request Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants