Skip to content

Commit

Permalink
Add a warning on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-cerny committed Jan 16, 2024
1 parent 58e409c commit 2d20f33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/OVAL/probes/probe/worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,11 +978,15 @@ static void _add_blocked_paths(struct oscap_list *bpaths)
if (envar == NULL) {
return;
}
#ifdef OS_WINDOWS
dW("OSCAP_PROBE_IGNORE_PATHS isn't effective on Windows.");
#else
char **paths = oscap_split(envar, ":");
for (int i = 0; paths[i]; ++i) {
oscap_list_add(bpaths, strdup(paths[i]));
}
free(paths);
#endif
}

/**
Expand Down

0 comments on commit 2d20f33

Please sign in to comment.