From 34bcff150d8e24c859e8b76bea004d814f817936 Mon Sep 17 00:00:00 2001 From: Craig Comstock Date: Wed, 29 May 2024 12:49:25 -0500 Subject: [PATCH] for windows, try single quotes instead of double since the command in packages.cf uses quotes already --- cf-agent/verify_packages.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cf-agent/verify_packages.c b/cf-agent/verify_packages.c index 45b05e82d0..afd6e1a4b2 100644 --- a/cf-agent/verify_packages.c +++ b/cf-agent/verify_packages.c @@ -2741,9 +2741,9 @@ const size_t name_len = strlen(pi->name); } else { - strcat(offset, "\""); + strcat(offset, "'"); strcat(offset+1, pi->name); -strcat(offset+1+name_len, "\""); +strcat(offset+1+name_len, "'"); } PromiseResult result = PROMISE_RESULT_NOOP; @@ -2802,9 +2802,9 @@ const size_t name_len = strlen(pi->name); } else { -strcpy(offset, "\""); +strcpy(offset, "'"); strcpy(offset+1, pi->name); -strcpy(offset+1+name_len, "\""); +strcpy(offset+1+name_len, "'"); } strcat(command_string, " ");