-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
listDirectoriesInDirectory
fix -- check if symlinks point to directories
#8399
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
Conversation
FYI #8392 |
Yes, looks like these two PRs will need to be manually merged. |
listDirectoriesInDirectory
fix -- check if symlinks point to directories
|
@directionless Is it possible to get this one into 5.13.1? We have a customer with a lot of symlinks that's getting flooded with warning messages from this issue. cc: @zwass @lucasmrod |
ASSERT_TRUE(!found_directories.empty()); | ||
|
||
ASSERT_TRUE(found_directories.size() == EXPECTED_NR_OF_DIRECTORIES); | ||
ASSERT_TRUE(found_directories.empty()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this empty now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this is a link that points to itself. It cannot be resolved canonically, so it doesn't make sense to return it as a directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Left a few comments on the test files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Fixes #8354: inotify treats symlinks to individual files as directories.
Demo video of the fix: https://www.loom.com/share/c7044edec1ff47158fd93f49a1b0af63