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

fix(symlink): fix --dereference --sort=size #996

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MoSal
Copy link

@MoSal MoSal commented May 17, 2024

File::length() did not take --dereference into account, and used
symlink metadata unconditionally.

This commit fixes that.

@MoSal MoSal requested a review from cafkafk as a code owner May 17, 2024 17:32
@MoSal MoSal force-pushed the fix_dereference_sort_size branch from 85d8670 to 031ade9 Compare May 17, 2024 17:34
 `File::length()` did not take `--dereference` into account, and used
 symlink metadata unconditionally.

 This commit fixes that.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
@MoSal MoSal force-pushed the fix_dereference_sort_size branch from 031ade9 to b8a481e Compare May 17, 2024 18:48
Copy link
Member

@PThorpe92 PThorpe92 left a comment

Choose a reason for hiding this comment

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

This looks good. Thanks for updating the tests 👍
ping @cafkafk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

Successfully merging this pull request may close these issues.

None yet

2 participants