Skip to content

Commit

Permalink
feat: Delete of CLIENT conditional directives.
Browse files Browse the repository at this point in the history
The use of the CLIENT directive is deleted and all manager logic is removed.
  • Loading branch information
sdvendramini committed Aug 12, 2024
1 parent 604667d commit 6ce47bb
Show file tree
Hide file tree
Showing 18 changed files with 3 additions and 637 deletions.
11 changes: 0 additions & 11 deletions src/common/file_op/include/file_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -629,17 +629,6 @@ int w_is_compressed_gz_file(const char * path);
*/
int w_is_compressed_bz2_file(const char * path);

#ifndef CLIENT
/**
* @brief Check if a file from a path is compressed in bunzip2 or gzip and uncompressed it
*
* @param path File location
* @retval -1 The file cannot be uncompressed
* @retval 0 The file has been uncompressed (.gz or .bz2)
*/
int w_uncompress_bz2_gz_file(const char * path, const char * dest);
#endif /* CLIENT */

/**
* @brief Get the Wazuh installation directory
*
Expand Down
21 changes: 0 additions & 21 deletions src/common/file_op/src/file_op.c
Original file line number Diff line number Diff line change
Expand Up @@ -3432,27 +3432,6 @@ int w_is_compressed_bz2_file(const char * path) {
return retval;
}

#ifndef CLIENT

int w_uncompress_bz2_gz_file(const char * path, const char * dest) {
int result = 1;

if (w_is_compressed_bz2_file(path)) {
result = bzip2_uncompress(path, dest);
}

if (w_is_compressed_gz_file(path)) {
result = w_uncompress_gzfile(path, dest);
}

if (!result) {
mdebug1("The file '%s' was successfully uncompressed into '%s'", path, dest);
}

return result;
}
#endif

#ifndef WIN32
/**
* @brief Get the Wazuh installation directory
Expand Down
3 changes: 0 additions & 3 deletions src/common/syscheck_op/include/syscheck_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,6 @@ void normalize_path(char *path);
* @return A string with escaped characters
*/
char *escape_syscheck_field(char *field);
#ifndef CLIENT
char *unescape_syscheck_field(char *sum);
#endif

#ifndef WIN32

Expand Down
Loading

0 comments on commit 6ce47bb

Please sign in to comment.