- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1
Fix/uss chown #565
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
base: main
Are you sure you want to change the base?
Fix/uss chown #565
Conversation
Signed-off-by: Amber <[email protected]>
Signed-off-by: Amber <[email protected]>
| Client artifacts: | 
Signed-off-by: Amber <[email protected]>
Signed-off-by: Amber <[email protected]>
Signed-off-by: Amber <[email protected]>
Signed-off-by: Amber <[email protected]>
| Server artifacts: | 
Signed-off-by: Amber <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this Amber! I have a small request for modifying the function definition/declaration but the changes & test cases make sense to me.
Also, I noticed some of the files had formatting changes after saving on my end - you might want to run clang-format to adjust formatting - or you can install the "Clang" extension in VS Code and use that to install clang & run the formatter.
Signed-off-by: Amber Torrise <[email protected]>
Signed-off-by: Amber <[email protected]>
Signed-off-by: Amber <[email protected]>
Signed-off-by: Amber Torrise <[email protected]>
| 
 | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address compile errors in https://github.com/zowe/zowe-native-proto/actions/runs/18291904557/job/52080946497?pr=565


WHAT IT DOES
zowex uss chown(zusf_chown_uss_file_or_dir) silently succeeded with exit code 0 when a non-existent/invalid user or group was supplied.user:groupcorrectly and validates both parts (numeric IDs or names viagetpwnam/getgrnam), returning a clear error instead of passing -1 tochown()lstat/lchownin a follow-up for possibly safer/consisten behavior.AUTOMATED TESTS

TEST PREP
Find values to test with
Create a test file
TESTING (manual)
(removal of this test case+ logic tbd)
REVIEW CHECKLIST
I certify that I have:
ADDITIONAL COMMENTS
Important
Feedback is welcome on whether to switch to
lstat/lchownin a future PR to avoid following symlinks.