the client should exit upon receiving one and not be surprised that
the socket closes.
- if (strncmp(line, "@ERROR", 6) == 0)
+ if (strncmp(line, "@ERROR", 6) == 0) {
rprintf(FERROR,"%s\n", line);
rprintf(FERROR,"%s\n", line);
+ /* This is always fatal; the server will now
+ * close the socket. */
+ return RERR_STARTCLIENT;
+ } else {
rprintf(FINFO,"%s\n", line);
rprintf(FINFO,"%s\n", line);
}
kludge_around_eof = False;
}
kludge_around_eof = False;