This repository was archived by the owner on Nov 24, 2025. It is now read-only.
t3c will ensure config files are owned by ats #6880
Merged
ocket8888 merged 14 commits intoapache:masterfrom Jun 10, 2022
Merged
t3c will ensure config files are owned by ats #6880ocket8888 merged 14 commits intoapache:masterfrom
ocket8888 merged 14 commits intoapache:masterfrom
Conversation
ocket8888
reviewed
Jun 2, 2022
ocket8888
reviewed
Jun 8, 2022
ocket8888
suggested changes
Jun 8, 2022
Contributor
|
To test this I made a copy of $ stat ./README.md
File: ./README.md
Size: 3471 Blocks: 8 IO Block: 4096 regular file
Device: 10303h/66307d Inode: 17697181 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/ocket8888) Gid: ( 1000/ocket8888)
Access: 2022-06-08 12:55:22.414520586 -0600
Modify: 2022-06-08 12:55:22.414520586 -0600
Change: 2022-06-08 12:55:22.414520586 -0600
Birth: 2022-06-08 12:55:22.414520586 -0600
$ ./t3c-diff -l '<!--' -m 0664 -u 0 -g 0 -a ./README.md -b ./README.new.md
$ echo $?
0 |
Contributor
Author
|
the default value if left blank is 0 if the value is 0 it will use the running process's uid/gid |
ocket8888
approved these changes
Jun 10, 2022
zrhoffman
pushed a commit
to zrhoffman/trafficcontrol
that referenced
this pull request
Oct 2, 2022
* Added option for uid and gid values and checks * added uid/gid to command and diff func * added gid/uid to diff func * added func for ownership check * added change log entry for t3c diff * should not be part of this branch * added uid and gid to usage string * fixed typo * fixed formatting error * added missing variables and flags * running process's uid/gid will be used by defalut * fixed formatting error. * made changes to the help text and removed extraneous space
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #6879
Which Traffic Control components are affected by this PR?
t3c, formerly ORT)What is the best way to verify this PR?
Build and install rpm, change file owner and group on some config files, queue updates on the cache, run t3c apply in syncds or badass, and verify owner and group have been set back to ats.
PR submission checklist