Rewrite the dir option, always using absolute paths.*/
| 1432 | |
| 1433 | /* Rewrite the dir option, always using absolute paths.*/ |
| 1434 | void 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. */ |
| 1445 | void rewriteConfigSlaveofOption(struct rewriteConfigState *state, char *option) { |
no test coverage detected