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

Correct read_dir(...) nlink/blocks reporting #540

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

MattCenturion
Copy link

When requested via "--list --json", read_dir(...) loops thru AFCKeyValueRead(...) to obtain st_size/st_mtime/st_birthtime/st_nlink/st_blocks of each directory entry. Likely typo had st_nlink value being overwritten by st_blocks causing reported "st_nlink" to match st_blocks and st_blocks always be "-1". Fix corrects this typo and now both values are being reported correctly.

When requested via "--list --json" read_dir(...) loops thru AFCKeyValueRead(...) to obtain st_size/st_mtime/st_birthtime/st_nlink/st_blocks of each directory entry. Likely typo had st_nlink value being overwritten by st_blocks value causing reported "st_nlink" to match st_blocks and st_blocks always be "-1". Fix corrects this small typo and now both values are being reported correctly in this case.
@gabebear gabebear merged commit c3742af into ios-control:master Oct 14, 2021
@gabebear
Copy link

Thanks for the fix

@MattCenturion MattCenturion deleted the patch-1 branch October 14, 2021 22:00
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.

2 participants