changed default command: ignores ABDUCO_CMD

This commit is contained in:
Michael Krayer 2023-10-11 11:06:13 +02:00
parent c80e8ff369
commit 14480decc7
1 changed files with 1 additions and 5 deletions

View File

@ -598,11 +598,7 @@ int main(int argc, char *argv[]) {
bool force = false;
char **cmd = NULL, action = '\0';
char *default_cmd[4] = { "/bin/sh", "-c", getenv("ABDUCO_CMD"), NULL };
if (!default_cmd[2]) {
default_cmd[0] = ABDUCO_CMD;
default_cmd[1] = NULL;
}
char *default_cmd[2] = { "/bin/bash", NULL };
server.name = basename(argv[0]);
gethostname(server.host+1, sizeof(server.host) - 1);