Skip to content

Commit

Permalink
Avoid conflict of set_rpm_db_path with rpmtsSetRootDir
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-cerny committed Aug 29, 2024
1 parent 04c731a commit 023b161
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/OVAL/probes/unix/linux/rpmverifypackage_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,6 @@ void *rpmverifypackage_probe_init(void)
root = NULL;
}

// needs to be called before we chroot
set_rpm_db_path();

struct verifypackage_global *g_rpm = malloc(sizeof(struct verifypackage_global));
probe_chroot_init(&g_rpm->chr, root);

Expand Down Expand Up @@ -370,6 +367,7 @@ void *rpmverifypackage_probe_init(void)
rpmtsSetRootDir(g_rpm->rpm.rpmts, CHROOT_PATH());
}

set_rpm_db_path();
pthread_mutex_init(&(g_rpm->rpm.mutex), NULL);
return ((void *)g_rpm);
}
Expand Down

0 comments on commit 023b161

Please sign in to comment.