@@ -52,11 +52,22 @@ handle_ipc_fwd_request(pcmk__request_t *request)
5252 return NULL ;
5353 }
5454
55- ipc_proxy_forward_client (request -> ipc_client , request -> xml );
55+ rc = ipc_proxy_forward_client (request -> ipc_client , request -> xml );
5656#else
5757 rc = EPROTONOSUPPORT ;
5858#endif
5959
60+ if (rc == pcmk_rc_ok ) {
61+ /* Coverity gets confused by the #ifdef above and thinks this block
62+ * is unreachable due to rc always being EPROTONOSUPPORT.
63+ */
64+ // coverity[dead_error_line]
65+ pcmk__set_result (& request -> result , CRM_EX_OK , PCMK_EXEC_DONE , NULL );
66+ } else {
67+ pcmk__set_result (& request -> result , pcmk_rc2exitc (rc ), PCMK_EXEC_ERROR ,
68+ pcmk_rc_str (rc ));
69+ }
70+
6071 pcmk__xe_get_int (request -> xml , PCMK__XA_LRMD_CALLID , & call_id );
6172
6273 /* Create a generic reply since forwarding doesn't create a more specific one */
@@ -196,6 +207,8 @@ handle_poke_request(pcmk__request_t *request)
196207
197208 pcmk__xe_get_int (request -> xml , PCMK__XA_LRMD_CALLID , & call_id );
198209
210+ pcmk__set_result (& request -> result , CRM_EX_OK , PCMK_EXEC_DONE , NULL );
211+
199212 /* Create a generic reply since this doesn't create a more specific one */
200213 reply = execd_create_reply (pcmk_ok , call_id );
201214 return reply ;
@@ -297,11 +310,13 @@ handle_rsc_info_request(pcmk__request_t *request)
297310
298311 /* This returns ENODEV if the resource isn't in the cache which will be
299312 * logged as an error. However, this isn't fatal to the client - it may
300- * querying to see if the resource exists before deciding to register it.
313+ * be querying to see if the resource exists before deciding to register it.
314+ * Thus, we'll ignore an ENODEV to prevent a warning message from being
315+ * logged.
301316 */
302317 rc = execd_process_get_rsc_info (request -> xml , call_id , & reply );
303318
304- if (rc == pcmk_rc_ok ) {
319+ if (( rc == pcmk_rc_ok ) || ( rc == ENODEV ) ) {
305320 pcmk__set_result (& request -> result , CRM_EX_OK , PCMK_EXEC_DONE , NULL );
306321 } else {
307322 pcmk__set_result (& request -> result , pcmk_rc2exitc (rc ), PCMK_EXEC_ERROR ,
0 commit comments