MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rewriteConfigDirOption

Function rewriteConfigDirOption

app/redis-6.2.6/src/config.c:1434–1442  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1432
1433/* Rewrite the dir option, always using absolute paths.*/
1434void rewriteConfigDirOption(struct rewriteConfigState *state) {
1435 char cwd[1024];
1436
1437 if (getcwd(cwd,sizeof(cwd)) == NULL) {
1438 rewriteConfigMarkAsProcessed(state,"dir");
1439 return; /* no rewrite on error. */
1440 }
1441 rewriteConfigStringOption(state,"dir",cwd,NULL);
1442}
1443
1444/* Rewrite the slaveof option. */
1445void rewriteConfigSlaveofOption(struct rewriteConfigState *state, char *option) {

Callers 1

rewriteConfigFunction · 0.85

Calls 2

Tested by

no test coverage detected