jpappa200 commented on PR #6880:
URL: https://github.com/apache/trafficcontrol/pull/6880#issuecomment-1150323947
the default value if left blank is 0
`uid := getopt.IntLong("file-uid", 'u', 0, "User id the file being checked
should have, default is running process's uid")`
`gid := getopt.IntLong("file-gid", 'g', 0, "Group id the file being checked
should have, default is running process's gid")`
if the value is 0 it will use the running process's uid/gid
`if *uid == 0 {
*uid = os.Geteuid()
}`
`if *gid == 0 {
*gid = os.Getgid()
}`
If you ran it as root it would find the difference. I could change the
default value but it seemed logical to say that only the root user could say it
should be owned by root.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]