diff options
author | Michael Fenn <fennm@deshawresearch.com> | 2013-07-24 20:26:53 -0400 |
---|---|---|
committer | Michael Fenn <fennm@deshawresearch.com> | 2013-07-24 20:26:53 -0400 |
commit | c3ff6611b640e11ab0d4986b64015355b516fa88 (patch) | |
tree | 9d0e93b4e2017b0efeab11ed5b25fdcbc895f355 /testsuite/Testsrc/Testlib | |
parent | 1c86a3668d017bcaeda602cbc5c5bee84d701647 (diff) | |
download | bcfg2-c3ff6611b640e11ab0d4986b64015355b516fa88.tar.gz bcfg2-c3ff6611b640e11ab0d4986b64015355b516fa88.tar.bz2 bcfg2-c3ff6611b640e11ab0d4986b64015355b516fa88.zip |
POSIX: Ignore permissions error on auto-created dirs
If the POSIX client tool is run as a non-root user, it is very
likely that the _set_perms() call in _makedirs() will fail because
it cannot set the owner of the newly-created directories. This
causes _makedirs() to return False, which in turn causes
POSIXFile.install() to bail out early.
Applying the reasoning in <https://github.com/Bcfg2/bcfg2/pull/108>
the freebie directories created by _makedirs should have mode and
ownership done on a best-effort basis. If a user needs parent
directories to have a specific ownership and mode, then they should
specify that directory in their configuration.
Diffstat (limited to 'testsuite/Testsrc/Testlib')
0 files changed, 0 insertions, 0 deletions