1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Reorder slightly to tidy code.

This commit is contained in:
Nicholas Marriott 2009-11-02 12:48:44 +00:00
parent 2f813ef75d
commit 992dd86309

View File

@ -272,14 +272,13 @@ server_start(char *path)
srv_fd = server_create_socket(); srv_fd = server_create_socket();
server_client_create(pair[1]); server_client_create(pair[1]);
if (access(SYSTEM_CFG, R_OK) != 0) { if (access(SYSTEM_CFG, R_OK) == 0) {
if (errno != ENOENT) { if (load_cfg(SYSTEM_CFG, NULL, &cause) != 0)
xasprintf(
&cause, "%s: %s", strerror(errno), SYSTEM_CFG);
goto error; goto error;
} } else if (errno != ENOENT) {
} else if (load_cfg(SYSTEM_CFG, NULL, &cause) != 0) xasprintf(&cause, "%s: %s", strerror(errno), SYSTEM_CFG);
goto error; goto error;
}
if (cfg_file != NULL && load_cfg(cfg_file, NULL, &cause) != 0) if (cfg_file != NULL && load_cfg(cfg_file, NULL, &cause) != 0)
goto error; goto error;