mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
bb#8993 - Rename the STAT macro to CLAMSTAT to avoid name conflicts on AIX
This commit is contained in:
parent
117e49dff4
commit
d9b6b8c757
18 changed files with 33 additions and 33 deletions
|
@ -236,7 +236,7 @@ int command(client_conn_t *conn, int *virus)
|
|||
int multiscan, max, alive;
|
||||
|
||||
/* use MULTISCAN only for directories (bb #1869) */
|
||||
if (STAT(conn->filename, &sb) == 0 &&
|
||||
if (CLAMSTAT(conn->filename, &sb) == 0 &&
|
||||
!S_ISDIR(sb.st_mode)) {
|
||||
thrmgr_setactivetask(NULL, "CONTSCAN");
|
||||
type = TYPE_CONTSCAN;
|
||||
|
@ -384,7 +384,7 @@ int command(client_conn_t *conn, int *virus)
|
|||
flags |= CLI_FTW_FOLLOW_FILE_SYMLINK;
|
||||
|
||||
if(!optget(opts, "CrossFilesystems")->enabled)
|
||||
if(STAT(conn->filename, &sb) == 0)
|
||||
if(CLAMSTAT(conn->filename, &sb) == 0)
|
||||
scandata.dev = sb.st_dev;
|
||||
|
||||
ret = cli_ftw(conn->filename, flags, maxdirrec ? maxdirrec : INT_MAX, scan_callback, &data, scan_pathchk);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue