Parcourir la source

dpkg: Do not change package eflags on --audit

Although the flags will never end up written back to disk, and there's
currently only eflag_reinstreq, it's actually wrong to change their
value during the audit.
Guillem Jover il y a 14 ans
Parent
commit
e7c1c059ac
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/enquiry.c

+ 2 - 2
src/enquiry.c

@@ -58,13 +58,13 @@ struct badstatinfo {
 static bool
 bsyn_reinstreq(struct pkginfo *pkg, const struct badstatinfo *bsi)
 {
-  return pkg->eflag &= eflag_reinstreq;
+  return pkg->eflag & eflag_reinstreq;
 }
 
 static bool
 bsyn_status(struct pkginfo *pkg, const struct badstatinfo *bsi)
 {
-  if (pkg->eflag &= eflag_reinstreq)
+  if (pkg->eflag & eflag_reinstreq)
     return false;
   return (int)pkg->status == bsi->value;
 }