pjdfstest icon indicating copy to clipboard operation
pjdfstest copied to clipboard

chmod/07.t line 38

Open chaoyongzhou opened this issue 2 years ago • 2 comments

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

right?

chaoyongzhou avatar May 22 '22 03:05 chaoyongzhou

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

asomers avatar May 22 '22 13:05 asomers

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.

chaoyongzhou avatar May 23 '22 01:05 chaoyongzhou