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

chmod/07.t line 38 #63

Open
chaoyongzhou opened this issue May 22, 2022 · 2 comments
Open

chmod/07.t line 38 #63

chaoyongzhou opened this issue May 22, 2022 · 2 comments

Comments

@chaoyongzhou
Copy link

chaoyongzhou commented May 22, 2022

"expect 0 -u 65534 -g 65534 symlink ${n2} ${n1}/${n3}"
should be
"expect 0 -u 65534 -g 65534 symlink ${n1}/${n2} ${n1}/${n3}"

right?

@asomers
Copy link
Collaborator

asomers commented May 22, 2022

Could you please explain what you think the problem is and why it should change? Same for #64 .

@chaoyongzhou
Copy link
Author

Could you please explain what you think the problem is and why it should change? Same for #64 .

37 expect 0 -u 65534 -g 65534 create ${n1}/${n2} 0644
38 expect 0 -u 65534 -g 65534 symlink ${n2} ${n1}/${n3}
39 expect 0 -u 65534 -g 65534 chmod ${n1}/${n3} 0642
40 expect 0642,65534,65534 stat ${n1}/${n2} mode,uid,gid
41 expect EPERM -u 65533 -g 65533 chmod ${n1}/${n3} 0641
42 expect 0642,65534,65534 stat ${n1}/${n2} mode,uid,gid

According line 37,40,42, I suspect this scope is to verify normal symlink scenario that n1/n3 symlink to n1/n2, but not abnormal scenario that n2 not existing.

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

No branches or pull requests

2 participants