forked from github/abduco
changed default command: ignores ABDUCO_CMD
This commit is contained in:
parent
c80e8ff369
commit
14480decc7
6
splex.c
6
splex.c
|
|
@ -598,11 +598,7 @@ int main(int argc, char *argv[]) {
|
||||||
bool force = false;
|
bool force = false;
|
||||||
char **cmd = NULL, action = '\0';
|
char **cmd = NULL, action = '\0';
|
||||||
|
|
||||||
char *default_cmd[4] = { "/bin/sh", "-c", getenv("ABDUCO_CMD"), NULL };
|
char *default_cmd[2] = { "/bin/bash", NULL };
|
||||||
if (!default_cmd[2]) {
|
|
||||||
default_cmd[0] = ABDUCO_CMD;
|
|
||||||
default_cmd[1] = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
server.name = basename(argv[0]);
|
server.name = basename(argv[0]);
|
||||||
gethostname(server.host+1, sizeof(server.host) - 1);
|
gethostname(server.host+1, sizeof(server.host) - 1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue