diff --git a/server/main_server/src/agent_main.cpp b/server/main_server/src/agent_main.cpp index 777d93da11..8086fd59bf 100644 --- a/server/main_server/src/agent_main.cpp +++ b/server/main_server/src/agent_main.cpp @@ -1274,6 +1274,7 @@ namespace std::memset(agent_pid_file_path, 0, sizeof(agent_pid_file_path)); std::strcpy(agent_pid_file_path, g_ips_data_directory); + std::strcat(agent_pid_file_path, "/"); std::strcat(agent_pid_file_path, agent_pid); unlink(agent_pid_file_path);