MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / rewriteConfigDirOption

Function rewriteConfigDirOption

src/config.cpp:1685–1693  ·  view source on GitHub ↗

Rewrite the dir option, always using absolute paths.*/

Source from the content-addressed store, hash-verified

1683
1684/* Rewrite the dir option, always using absolute paths.*/
1685void rewriteConfigDirOption(struct rewriteConfigState *state) {
1686 char cwd[1024];
1687
1688 if (getcwd(cwd,sizeof(cwd)) == NULL) {
1689 rewriteConfigMarkAsProcessed(state,"dir");
1690 return; /* no rewrite on error. */
1691 }
1692 rewriteConfigStringOption(state,"dir",cwd,NULL);
1693}
1694
1695/* Rewrite the slaveof option. */
1696void rewriteConfigSlaveofOption(struct rewriteConfigState *state, const char *option) {

Callers 1

rewriteConfigFunction · 0.85

Calls 2

Tested by

no test coverage detected