util: don't AND cx with cx

This commit is contained in:
Lennart Poettering
2011-04-30 04:07:28 +02:00
parent ec43fbc68c
commit ec195f55fb
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -37,6 +37,11 @@ Features:
* plymouth.enable=0
* include /usr/local/lib/tmpfiles.d in tmpfiles tool as search path
(and prefix/lib, in case it isn't one of the listed ones)
* POSIX mqueue support in .socket units
* introduce dbus calls for enabling/disabling a service
* support notifications for services being enabled/disabled
+1 -1
View File
@@ -4011,7 +4011,7 @@ int detect_vm(const char **id) {
: "0" (eax)
);
hypervisor = !!(ecx & ecx & 0x80000000U);
hypervisor = !!(ecx & 0x80000000U);
if (hypervisor) {