When using source-file, run the commands in the context of the source-file

command rather than with no context. This makes things like attach work from a
file.
This commit is contained in:
Nicholas Marriott
2009-08-23 17:29:51 +00:00
parent 43cd40e87a
commit c7394ac4e0
4 changed files with 14 additions and 9 deletions

View File

@ -188,9 +188,9 @@ server_start(char *path)
&cause, "%s: %s", strerror(errno), SYSTEM_CFG);
goto error;
}
} else if (load_cfg(SYSTEM_CFG, &cause) != 0)
} else if (load_cfg(SYSTEM_CFG, NULL, &cause) != 0)
goto error;
if (cfg_file != NULL && load_cfg(cfg_file, &cause) != 0)
if (cfg_file != NULL && load_cfg(cfg_file, NULL, &cause) != 0)
goto error;
exit(server_main(srv_fd));