} else if(strcmp(cmd, "CC") == 0 && arg != NULL && authed) {
if(rbs_task(sock, section, cmd, arg)) {
rbs_write(sock, "SUCCESS\n", 8);
+ free(line);
+ break;
} else {
rbs_write(sock, "FAIL\n", 5);
free(line);
}
}
free(str);
- for(i = 0; stack[i] != NULL; i++) {
- printf("[%s]\n", stack[i]);
- }
return stack;
}
int len = read(outpipe[0], &c, 1);
if(len <= 0) break;
if(c == '\n') {
+ if(oldc == '\n') rbs_write(sock, "+", 1);
rbs_write(sock, "\n", 1);
} else {
if(oldc == '\n') rbs_write(sock, "+", 1);