Rewrite the dir option, always using absolute paths.*/
| 1683 | |
| 1684 | /* Rewrite the dir option, always using absolute paths.*/ |
| 1685 | void 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. */ |
| 1696 | void rewriteConfigSlaveofOption(struct rewriteConfigState *state, const char *option) { |
no test coverage detected