Repository navigation
Fixed --simulate=diff to report permission and ownership changes - #6436
Conversation
|
@cf-bottom jenkins |
|
Alright, I triggered a build: Jenkins: https://ci.cfengine.com/job/pr-pipeline/14869/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-14869/ |
ebc01f0 to
9673b77
Compare
|
@cf-bottom jenkins |
|
Alright, I triggered a build: Jenkins: https://ci.cfengine.com/job/pr-pipeline/14870/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-14870/ |
| char name[CF_SMALLBUF]; | ||
| if (GetUserName(uid, name, sizeof(name), LOG_LEVEL_VERBOSE)) | ||
| { | ||
| snprintf(buf, buf_size, "%ju/%s", (uintmax_t) uid, name); |
There was a problem hiding this comment.
Would be nice to handle truncation
There was a problem hiding this comment.
lmk if your happy with the change.
The diff report only ran 'diff -u' on file contents, so a file whose mode, owner or group changed without its contents was listed with nothing under it. Permission, owner and group changes are now printed before the content diff. Ticket: ENT-14694 Changelog: Title
|
Done. |
9673b77 to
e55f9d8
Compare
With
--simulate=diff, a file whose mode, owner or group changed without its contents was listed in the report with nothing under it, because onlydiff -uon the contents was shown. The report now prints the permission, owner and group changes before the content diff, e.g.:Ticket: ENT-14694