[systemd-commits] src/condition.c
Kay Sievers
kay at kemper.freedesktop.org
Sun Oct 9 07:38:23 PDT 2011
src/condition.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e5396fed3f33cb80699561b55090dc3ba7c95de8
Author: Kay Sievers <kay.sievers at vrfy.org>
Date: Sun Oct 9 16:36:45 2011 +0200
test_virtualization: do not try to compare id in !virt context
diff --git a/src/condition.c b/src/condition.c
index e978656..07624c8 100644
--- a/src/condition.c
+++ b/src/condition.c
@@ -148,7 +148,7 @@ static bool test_virtualization(const char *parameter) {
return true;
/* Finally compare id */
- return streq(parameter, id);
+ return v > 0 && streq(parameter, id);
}
static bool test_security(const char *parameter) {
More information about the systemd-commits
mailing list