From 2d20f338e675209381d588d3c5d0be8ab2e71884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= Date: Tue, 16 Jan 2024 15:00:04 +0100 Subject: [PATCH] Add a warning on Windows --- src/OVAL/probes/probe/worker.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/OVAL/probes/probe/worker.c b/src/OVAL/probes/probe/worker.c index c8ef869829..53ebf26639 100644 --- a/src/OVAL/probes/probe/worker.c +++ b/src/OVAL/probes/probe/worker.c @@ -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 } /**