Skip to content

Commit c27e108

Browse files
authored
Merge pull request #2053 from 0intro/dpkginfo-status-fix
Fix parsing of Status in dpkginfo probe
2 parents 3f23bb8 + d3397b1 commit c27e108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OVAL/probes/unix/linux/dpkginfo-helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ struct dpkginfo_reply_t* dpkginfo_get_by_name(const char *name, int *err)
125125
}
126126
} else if (reply != NULL) {
127127
if (strcmp(key, "Status") == 0) {
128-
if (strcmp(value, "install") != 0) {
128+
if (strncmp(value, "install", 7) != 0) {
129129
// Package deinstalled.
130130
dD("Package \"%s\" has been deinstalled.", name);
131131
dpkginfo_free_reply(reply);

0 commit comments

Comments
 (0)