Skip to content

Commit

Permalink
for windows, try single quotes instead of double since the command in…
Browse files Browse the repository at this point in the history
… packages.cf uses quotes already
  • Loading branch information
craigcomstock committed May 29, 2024
1 parent b406984 commit 34bcff1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cf-agent/verify_packages.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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, " ");
Expand Down

0 comments on commit 34bcff1

Please sign in to comment.