Skip to content

Conversation

eminence
Copy link
Owner

It was reported (#241) that old kernels (2.6) will return a failure if SYMLINK_NOFOLLOW is used, so lets check for errors here.

@eminence
Copy link
Owner Author

@bobrik does this look OK to you?

@bobrik
Copy link
Contributor

bobrik commented Feb 14, 2023

I think we can also just not pass any flags (pass AtFlags::empty()) and that would work too and be easier to follow.

@eminence
Copy link
Owner Author

Ah, good point. I somehow had it in my head that the SYMLINK_NOFOLLOW part was relevant here, but that's not true. So AtFlags::empty() sounds like the way to go here. Thanks

This is not supported on 2.6 kernels, and we really don't expect this
directory to be a symlink
@eminence eminence merged commit 391bd13 into master Feb 15, 2023
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