Skip to content

Commit

Permalink
Use the OSCAP_PCRE_ERR_NOMATCH
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-cerny committed Sep 15, 2023
1 parent 1e32c86 commit 3f35e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OVAL/probes/unix/linux/partition_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ int partition_probe_main(probe_ctx *ctx, void *probe_arg)
rc = oscap_pcre_exec(re, mnt_entp->mnt_dir,
strlen(mnt_entp->mnt_dir), 0, 0, NULL, 0);

if (rc >= 0) {
if (rc > OSCAP_PCRE_ERR_NOMATCH) {
if (
#if defined(HAVE_BLKID_GET_TAG_VALUE)
collect_item(ctx, obj_over, mnt_entp, blkcache)
Expand Down

0 comments on commit 3f35e89

Please sign in to comment.