aboutsummaryrefslogtreecommitdiffstats
path: root/tests/drop-privileges
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2021-02-24 20:03:44 +0100
committerGuilhem Moulin <guilhem@fripost.org>2021-02-24 21:09:02 +0100
commitcdd025133a306cd8d3e81aa832ac056119d65f3a (patch)
tree70124d1307c6bb9f49fb9b2440521a7fe15786b9 /tests/drop-privileges
parentfaab30461b0f2b920e3dd19489ce458c0b38e6d9 (diff)
lacme: Don't write certificate(-chain) file on chown/chmod failure.
Otherwise we end up with files with mode 0644 owned by root:root, and subsequent lacme(8) invocations will likely not renew them for a while. This change also saves a chown(2) call. And the new logic (chown resp. chmod from root:root resp. 0600) is safe if we ever include private key material in there too.
Diffstat (limited to 'tests/drop-privileges')
0 files changed, 0 insertions, 0 deletions