Univention Bugzilla – Bug 34241
Regression: Writing of config files should be an atomic operation
Last modified: 2014-03-17 13:00:28 CET
Created attachment 5810 [details] Fix atomic write to preserve old file permission +++ This bug was initially created as a clone of Bug #33842 +++ Regression UCS-3.2-{0→1}, detected through Bug #34233: With only "Mode" given but without "User" or "Group" the owner/group are not carried over, if the owner/group is changes through an explicit "chown" on the generated file: # ./51file_permissions -vvvf FAIL: /tmp/ucs-test-33842-f0 0660 bin!=root bin!=root FAIL: /tmp/ucs-test-33842-f4 0400 bin!=root bin!=root FAIL: /tmp/ucs-test-33842-m0 0664 bin!=root bin!=root FAIL: /tmp/ucs-test-33842-m4 0400 bin!=root bin!=root FAIL: /tmp/ucs-test-33842-d0 0660 bin!=root bin!=root FAIL: /tmp/ucs-test-33842-d4 0400 bin!=root bin!=root
The file permission and ownership information is now copied implicitly from the previous file, before any explicit modifications are applied afterwards. ucr: r48422 univention-config-registry_9.0.6-5.453.201403101139 ucs-test_4.0.163-1.677.201403101144 yaml: r48423
Code: OK YAML: OK Tests: OK
http://errata.univention.de/ucs/3.2/70.html