From a1af7004d736e0879623c72ab76d87f8d252f20f Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Nov 24 2009 16:12:20 +0000 Subject: - take only the first line for status --- diff --git a/src/submit-e.c b/src/submit-e.c index 1457718..eb07237 100644 --- a/src/submit-e.c +++ b/src/submit-e.c @@ -104,7 +104,9 @@ cm_submit_e_ready(struct cm_store_entry *entry, struct cm_submit_state *state) (WEXITSTATUS(status) != CM_STATUS_WAIT)) { talloc_free(entry->cm_ca_error); entry->cm_ca_error = - talloc_strdup(entry, msg); + talloc_strndup(entry, msg, + strcspn(msg, + "\r\n")); } } return 0;