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

Simplify the test for chown with uid==-1, gid==-1 #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asomers
Copy link
Collaborator

@asomers asomers commented Jul 30, 2022

  • Bug fix: the second chown should've been directed at the symlink
  • Use users 0/65534 instead of 65534/65532. There's nothing special
    about uid 0 for this tests's purposes. Using uid 0 as the file owner
    allows skipping some setup tests and eliminating an extra user.
  • Eliminate a step that basically just asserts "chown follows symlinks"
  • Eliminate a step that basically just asserts "stat follows symlinks"

This change eliminates user 65532 from the test suite.

* Bug fix: the second chown should've been directed at the symlink
* Use users 0/65534 instead of 65534/65532.  There's nothing special
  about uid 0 for this tests's purposes.  Using uid 0 as the file owner
  allows skipping some setup tests and eliminating an extra user.
* Eliminate a step that basically just asserts "chown follows symlinks"
* Eliminate a step that basically just asserts "stat follows symlinks"

This change eliminates user 65532 from the test suite.
@asomers asomers requested a review from ngie-eign July 30, 2022 17:46
@asomers
Copy link
Collaborator Author

asomers commented Jul 30, 2022

cc @musikid

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.

1 participant