bb12336 - Fix to tmpdir access check in clamscan when using stdin scanning. The access check mistakenly assumed the use of the clamav user account.

pull/111/head
Micah Snyder (micasnyd) 6 years ago committed by Micah Snyder
parent 32f2be9cbb
commit b3c740af47
  1. 2
      clamscan/manager.c

@ -550,7 +550,7 @@ static int scanstdin(const struct cl_engine *engine, const struct optstruct *opt
tmpdir = cli_gettmpdir();
}
if (checkaccess(tmpdir, CLAMAVUSER, W_OK) != 1) {
if (access(tmpdir, R_OK | W_OK) == -1) {
logg("!Can't write to temporary directory\n");
return 2;
}

Loading…
Cancel
Save