Logrotate configs cannot be world writable : https://github.com/webmin/webmin/issues/2396

This commit is contained in:
Jamie Cameron
2025-02-06 18:32:55 -08:00
committed by GitHub
parent 1b7c9f9dd6
commit 083bde276c

View File

@@ -344,6 +344,7 @@ foreach $c (@$conf) {
}
print TEMP map { "$_\n" } &directive_lines($_[0]);
close(TEMP);
&set_ownership_permissions(undef, undef, 0700, $temp);
local $out = &backquote_logged("$config{'logrotate'} -f $temp 2>&1");
return ($?, $out);
}