You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-11-06 08:49:29 +02:00
Rename hrnCfgEnvId*() to hrnCfgEnvKey*().
The hrnCfg*() functions were renamed before commit but these got missed.
This commit is contained in:
@@ -177,23 +177,23 @@ hrnCfgArgKeyRawReset(StringList *argList, ConfigOption optionId, unsigned option
|
||||
void
|
||||
hrnCfgEnvRaw(ConfigOption optionId, const String *value)
|
||||
{
|
||||
hrnCfgEnvIdRawZ(optionId, 1, strZ(value));
|
||||
hrnCfgEnvKeyRawZ(optionId, 1, strZ(value));
|
||||
}
|
||||
|
||||
void
|
||||
hrnCfgEnvIdRaw(ConfigOption optionId, unsigned optionKey, const String *value)
|
||||
hrnCfgEnvKeyRaw(ConfigOption optionId, unsigned optionKey, const String *value)
|
||||
{
|
||||
hrnCfgEnvIdRawZ(optionId, optionKey, strZ(value));
|
||||
hrnCfgEnvKeyRawZ(optionId, optionKey, strZ(value));
|
||||
}
|
||||
|
||||
void
|
||||
hrnCfgEnvRawZ(ConfigOption optionId, const char *value)
|
||||
{
|
||||
hrnCfgEnvIdRawZ(optionId, 1, value);
|
||||
hrnCfgEnvKeyRawZ(optionId, 1, value);
|
||||
}
|
||||
|
||||
void
|
||||
hrnCfgEnvIdRawZ(ConfigOption optionId, unsigned optionKey, const char *value)
|
||||
hrnCfgEnvKeyRawZ(ConfigOption optionId, unsigned optionKey, const char *value)
|
||||
{
|
||||
setenv(strZ(strNewFmt(HRN_PGBACKREST_ENV "%s", cfgOptionName(optionId + optionKey - 1))), value, true);
|
||||
}
|
||||
@@ -201,11 +201,11 @@ hrnCfgEnvIdRawZ(ConfigOption optionId, unsigned optionKey, const char *value)
|
||||
void
|
||||
hrnCfgEnvRemoveRaw(ConfigOption optionId)
|
||||
{
|
||||
hrnCfgEnvIdRemoveRaw(optionId, 1);
|
||||
hrnCfgEnvKeyRemoveRaw(optionId, 1);
|
||||
}
|
||||
|
||||
void
|
||||
hrnCfgEnvIdRemoveRaw(ConfigOption optionId, unsigned optionKey)
|
||||
hrnCfgEnvKeyRemoveRaw(ConfigOption optionId, unsigned optionKey)
|
||||
{
|
||||
unsetenv(strZ(strNewFmt(HRN_PGBACKREST_ENV "%s", cfgOptionName(optionId + optionKey - 1))));
|
||||
}
|
||||
|
||||
@@ -54,10 +54,10 @@ Environment helper functions
|
||||
Add and remove environment options, which are required to pass secrets, e.g. repo1-cipher-pass.
|
||||
***********************************************************************************************************************************/
|
||||
void hrnCfgEnvRaw(ConfigOption optionId, const String *value);
|
||||
void hrnCfgEnvIdRaw(ConfigOption optionId, unsigned optionKey, const String *value);
|
||||
void hrnCfgEnvKeyRaw(ConfigOption optionId, unsigned optionKey, const String *value);
|
||||
|
||||
void hrnCfgEnvRawZ(ConfigOption optionId, const char *value);
|
||||
void hrnCfgEnvIdRawZ(ConfigOption optionId, unsigned optionKey, const char *value);
|
||||
void hrnCfgEnvKeyRawZ(ConfigOption optionId, unsigned optionKey, const char *value);
|
||||
|
||||
void hrnCfgEnvRemoveRaw(ConfigOption optionId);
|
||||
void hrnCfgEnvIdRemoveRaw(ConfigOption optionId, unsigned optionKey);
|
||||
void hrnCfgEnvKeyRemoveRaw(ConfigOption optionId, unsigned optionKey);
|
||||
|
||||
Reference in New Issue
Block a user