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

chown does not check for symlinks pointing to root when recursing through a tree #1709

Open
jaggededgedjustice opened this issue Jan 31, 2021 · 1 comment

Comments

@jaggededgedjustice
Copy link
Contributor

Even if the --preserve-root option is set the chown command will attempt to follow a symlink pointing to root. This can be seen with the following test:

mkdir point-to-root
ln -s / point-to-root/root
chown -RHh --preserve-root 1000 point-to-root/

The GNU chown will exit immediately, while this chown will follow the symlink and start trying to change root.

@stale
Copy link

stale bot commented Jan 20, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants