because the server doesn't send C_PROMPT. The client simply rejects
such redirections since servcmd.c rev. 1.42. Before it didn't, but
incorrectly extended the redirection until the end of the script, and
screwed up when there was more than one redirection in the execute.
Make the server reject such redirections as well, because that's
probably more useful and certainly less painful than documenting this
mess.
- * actually a command; redirection and piping ignored.
* XXX This whole mess should be redone; execute block should
* start with "exec start", and should end with "exec end".
* We'll wait until 1.2 I guess.
* XXX This whole mess should be redone; execute block should
* start with "exec start", and should end with "exec end".
* We'll wait until 1.2 I guess.
char scanspace[1024];
failed = 0;
char scanspace[1024];
failed = 0;
if (player->comtail[1])
p = player->comtail[1];
if (player->comtail[1])
p = player->comtail[1];
- if (redir == NULL)
- pr("\nExecute : %s\n", buf);
- if (dispatch(buf, redir) < 0)
+ pr("\nExecute : %s\n", buf);
+ if (redir) {
+ pr("Execute : redirection not supported\n");
+ failed = 1;
+ } else if (dispatch(buf, NULL) < 0)
failed = 1;
}
if (failed) {
while (recvclient(buf, sizeof(buf)) >= 0) ;
}
failed = 1;
}
if (failed) {
while (recvclient(buf, sizeof(buf)) >= 0) ;
}
- if (redir == NULL)
- pr("Execute : %s\n", failed ? "aborted" : "terminated");
+ pr("Execute : %s\n", failed ? "aborted" : "terminated");
player->eof = 0;
return RET_OK;
}
player->eof = 0;
return RET_OK;
}