Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

CONFIG REWRITE: fixed ENOENT (No such file or directory) error #1464

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

xiaost7 commented Dec 13, 2013

how to reproduce:

  1. config-file use relative path
  2. option 'dir' set to another path
  3. execute cmd CONFIG REWRITE
  4. report "ERR Rewriting config file: No such file or directory"

the code:

resetServerSaveParams();
loadServerConfig(configfile,options); /* cwd is changed here */
sdsfree(options);
/* get the wrong absolute path */
if (configfile) server.configfile = getAbsolutePath(configfile); 

@xiaost7 xiaost7 closed this Apr 29, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment