From 9eae80474fd86193af03148e58010186f9e39fc7 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Aug 21 2024 18:42:46 +0000 Subject: sanlock: repeat helper_msg string termination --- diff --git a/src/helper.c b/src/helper.c index 84b5263..987834d 100644 --- a/src/helper.c +++ b/src/helper.c @@ -205,6 +205,10 @@ int run_helper(int in_fd, int out_fd, int log_stderr) if (rv) continue; + /* terminated at sender, but confirm for checker */ + hm.path[SANLK_HELPER_PATH_LEN-1] = '\0'; + hm.args[SANLK_HELPER_ARGS_LEN-1] = '\0'; + if (hm.type == HELPER_MSG_RUNPATH) { pid = fork(); if (!pid) {