From: Ruben Kerkhof Date: Fri, 25 Dec 2015 09:53:41 +0000 (+0100) Subject: uuid plugin: only look in /sys on Linux X-Git-Tag: collectd-5.6.0~87^2~5 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=aef788ac8927ffa74429daaffb572566fae782ec;p=collectd.git uuid plugin: only look in /sys on Linux --- diff --git a/src/uuid.c b/src/uuid.c index 446969aa..223bfd54 100644 --- a/src/uuid.c +++ b/src/uuid.c @@ -201,8 +201,10 @@ uuid_get_local(void) if ((uuid = uuid_get_from_dmidecode()) != NULL) return (uuid); +#if defined(__linux__) if ((uuid = uuid_get_from_file("/sys/hypervisor/uuid")) != NULL) return (uuid); +#endif return (NULL); }