Skip to content

Dont use unreliable inodes for checking file identity#25008

Merged
weswigham merged 3 commits into
microsoft:masterfrom
weswigham:small-build-fixes
Jun 15, 2018
Merged

Dont use unreliable inodes for checking file identity#25008
weswigham merged 3 commits into
microsoft:masterfrom
weswigham:small-build-fixes

Conversation

@weswigham
Copy link
Copy Markdown
Member

Since node can report multiple files as having the same inode due to a casting bug, as just happened to me, ref nodejs/node#12115 (and we dont need to handle symlinks anyway, tbh).

Also concatenate with just lf, since all the other line endings are lf, and we don't want mixed line endings in the lkg.

@weswigham weswigham requested a review from RyanCavanaugh June 15, 2018 22:04
/**
* Find the size of a directory recursively.
* Symbolic links are counted once (same inode).
* Symbolic links can cause a loop.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A+ would loop again

@weswigham weswigham merged commit 657d011 into microsoft:master Jun 15, 2018
@weswigham weswigham deleted the small-build-fixes branch June 15, 2018 22:53
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants