Skip to content

Commit

Permalink
Merge pull request #2053 from 0intro/dpkginfo-status-fix
Browse files Browse the repository at this point in the history
Fix parsing of Status in dpkginfo probe
  • Loading branch information
evgenyz authored Nov 17, 2023
2 parents 3f23bb8 + d3397b1 commit c27e108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OVAL/probes/unix/linux/dpkginfo-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ struct dpkginfo_reply_t* dpkginfo_get_by_name(const char *name, int *err)
}
} else if (reply != NULL) {
if (strcmp(key, "Status") == 0) {
if (strcmp(value, "install") != 0) {
if (strncmp(value, "install", 7) != 0) {
// Package deinstalled.
dD("Package \"%s\" has been deinstalled.", name);
dpkginfo_free_reply(reply);
Expand Down

0 comments on commit c27e108

Please sign in to comment.