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

various chase_symlink() fixes #14689

Merged
merged 5 commits into from
Jan 29, 2020

Conversation

poettering
Copy link
Member

No description provided.

src/basic/fs-util.c Outdated Show resolved Hide resolved
…t unresolved

Previously there was a weird asymmetry: initially we'd resolve the
specified prefix path when chasing symlinks together with the actual
path we were supposed to cover, except when we hit an absolute symlink
where we'd use the root as it was. Let's unify handling here: the prefix
path is never resolved, and always left as it is.

This in particular fixes issues with symlinks in the prefix path, as
that confused the check that made sure we never left the root directory.

Fixes: systemd#14634
Replaces: systemd#14635
This corrects the fix b81b9d4, making the test operate like it was
originally.
@yuwata
Copy link
Member

yuwata commented Jan 29, 2020

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

4 participants