1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00
pgbackrest/test
David Steele ed9b0c260a
Fix permissions when restore run as root user.
When restore was run as the root user the pg_control file would end up with root permissions. This bug was introduced in e634fd8. Fix this by directly overwriting the pg_control temp file rather than doing an atomic write that updates permissions. Also update other parameters to more closely match similar calls.

There was also an adjacent error where restore as the root user would fail if the base path did not exist. Fix this by ignoring the missing path since it will be created later and this logic is just trying to find an alternate user for permissions if the user in the manifest does not exist.
2024-08-13 11:43:05 +08:00
..
certificate Support IP-based SANs for TLS certificate validation. 2024-07-11 10:54:20 +07:00
code-count Remove internal repo-create command. 2024-07-22 14:17:47 +07:00
data Remove test data files made obsolete by d41b21c8. 2024-03-30 10:43:05 +11:00
lib/pgBackRestTest/Common Update EOL Debian 10 to Debian 11/Ubuntu 20.04 in CI. 2024-07-15 11:53:57 +07:00
src Fix permissions when restore run as root user. 2024-08-13 11:43:05 +08:00
.gitignore Move coverage results to test/result. 2020-03-14 15:29:42 -04:00
ci.pl Migrate CentOS 7 integration tests to Rocky 8. 2024-06-11 15:20:04 +10:00
container.yaml Update EOL Debian 10 to Debian 11/Ubuntu 20.04 in CI. 2024-07-15 11:53:57 +07:00
define.yaml Use Posix driver to complete dummy storage driver. 2024-08-02 15:47:30 +07:00
Dockerfile Migrate coverage testing to C and remove dependency on lcov. 2024-05-31 14:52:07 +10:00
test.pl Auto-generate code before building test binary. 2024-07-09 10:48:27 +07:00
uncrustify.cfg Check for stray execute permissions in test.pl --code-format. 2023-02-01 12:57:04 +07:00
Vagrantfile Migrate coverage testing to C and remove dependency on lcov. 2024-05-31 14:52:07 +10:00