We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8474e6a commit ca96f27Copy full SHA for ca96f27
1 file changed
clamscan/manager.c
@@ -1251,6 +1251,15 @@ int scanmanager(const struct optstruct *opts)
1251
if ((opt = optget(opts, "database"))->active) {
1252
while (opt) {
1253
if (optget(opts, "fail-if-cvd-older-than")->enabled) {
1254
+ if (LSTAT(opt->strarg, &sb) == -1) {
1255
+ logg(LOGG_ERROR, "Can't access database directory/file: %s\n", opt->strarg);
1256
+ ret = 2;
1257
+ goto done;
1258
+ }
1259
+ if(!S_ISDIR(sb.st_mode) && !CLI_DBEXT_SIGNATURE(opt->strarg)) {
1260
+ opt = opt->nextarg;
1261
+ continue;
1262
1263
if (check_if_cvd_outdated(opt->strarg, optget(opts, "fail-if-cvd-older-than")->numarg) != CL_SUCCESS) {
1264
ret = 2;
1265
goto done;
0 commit comments