Skip to content

Commit 3f35e89

Browse files
committed
Use the OSCAP_PCRE_ERR_NOMATCH
1 parent 1e32c86 commit 3f35e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OVAL/probes/unix/linux/partition_probe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ int partition_probe_main(probe_ctx *ctx, void *probe_arg)
402402
rc = oscap_pcre_exec(re, mnt_entp->mnt_dir,
403403
strlen(mnt_entp->mnt_dir), 0, 0, NULL, 0);
404404

405-
if (rc >= 0) {
405+
if (rc > OSCAP_PCRE_ERR_NOMATCH) {
406406
if (
407407
#if defined(HAVE_BLKID_GET_TAG_VALUE)
408408
collect_item(ctx, obj_over, mnt_entp, blkcache)

0 commit comments

Comments
 (0)