if(number_of_bytes_readed > 0) \r
{\r
for(i= 0, j= 0; i < number_of_bytes_readed; i++)\r
- if((int)(buffer[i]) != 13)\r
+ if((buffer[i]) != '\r')\r
clean[j++] = buffer[i];\r
\r
xbt_strbuff_append(output,clean);\r
else\r
INFO1("[%s] No output before read failure",command->context->pos);\r
\r
- unit_set_error(command->unit, errno, 0);\r
+ unit_set_error(command->unit, errno, 0, command->context->pos);\r
command_kill(command);\r
command_handle_failure(command, csr_read_failure);\r
}\r
else\r
INFO1("[%s] No output before read failure",command->context->pos);\r
\r
- unit_set_error(command->unit, errno, 0);\r
+ unit_set_error(command->unit, errno, 0, command->context->pos);\r
command_kill(command);\r
command_handle_failure(command, csr_read_failure);\r
}\r