mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-14 10:13:05 +02:00
Remove option exclusions now handled by command role validity.
These options were explicitly excluded because it was possible for them to be mangled by SSH if they contained spaces. They are now excluded by command role validity rules.
This commit is contained in:
parent
09fdde359c
commit
82a75268c1
@ -398,17 +398,6 @@ protocolRemoteParam(ProtocolStorageType protocolStorageType, unsigned int hostId
|
|||||||
kvPut(optionReplace, VARSTR(CFGOPT_LOG_PATH_STR), NULL);
|
kvPut(optionReplace, VARSTR(CFGOPT_LOG_PATH_STR), NULL);
|
||||||
kvPut(optionReplace, VARSTR(CFGOPT_LOCK_PATH_STR), NULL);
|
kvPut(optionReplace, VARSTR(CFGOPT_LOCK_PATH_STR), NULL);
|
||||||
|
|
||||||
// ??? Don't pass restore options which the remote doesn't need and are likely to contain spaces because they might get mangled
|
|
||||||
// on the way to the remote depending on how SSH is set up on the server. This code should be removed when option passing with
|
|
||||||
// spaces is resolved.
|
|
||||||
kvPut(optionReplace, VARSTR(CFGOPT_TYPE_STR), NULL);
|
|
||||||
kvPut(optionReplace, VARSTR(CFGOPT_TARGET_STR), NULL);
|
|
||||||
kvPut(optionReplace, VARSTR(CFGOPT_TARGET_EXCLUSIVE_STR), NULL);
|
|
||||||
kvPut(optionReplace, VARSTR(CFGOPT_TARGET_ACTION_STR), NULL);
|
|
||||||
kvPut(optionReplace, VARSTR(CFGOPT_TARGET_STR), NULL);
|
|
||||||
kvPut(optionReplace, VARSTR(CFGOPT_TARGET_TIMELINE_STR), NULL);
|
|
||||||
kvPut(optionReplace, VARSTR(CFGOPT_RECOVERY_OPTION_STR), NULL);
|
|
||||||
|
|
||||||
// Only enable file logging on the remote when requested
|
// Only enable file logging on the remote when requested
|
||||||
kvPut(
|
kvPut(
|
||||||
optionReplace, VARSTR(CFGOPT_LOG_LEVEL_FILE_STR),
|
optionReplace, VARSTR(CFGOPT_LOG_LEVEL_FILE_STR),
|
||||||
|
Loading…
Reference in New Issue
Block a user