summaryrefslogtreecommitdiff
path: root/src/detect-virt.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-09-23 04:38:39 +0200
committerLennart Poettering <lennart@poettering.net>2011-09-23 16:28:27 +0200
commit65bc2c21140d20e757b0aed9bb23286939426abb (patch)
treeea1be9f787323ba98113382965745e31c51c17f4 /src/detect-virt.c
parent3bb1c6b04f93841c10d2cb1c4e2945d5a0bb8ff1 (diff)
util: detect systemd-nspawn without relying on ns cgroup tree
Diffstat (limited to 'src/detect-virt.c')
-rw-r--r--src/detect-virt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/detect-virt.c b/src/detect-virt.c
index 57f0176668..324f182c7e 100644
--- a/src/detect-virt.c
+++ b/src/detect-virt.c
@@ -34,7 +34,8 @@ int main(int argc, char *argv[]) {
* to detect whether we are being run in a virtualized
* environment or not */
- if ((r = detect_virtualization(&id)) < 0) {
+ r = detect_virtualization(&id);
+ if (r < 0) {
log_error("Failed to check for virtualization: %s", strerror(-r));
return EXIT_FAILURE;
}