diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-05-15 14:10:34 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-05-15 14:13:19 +0200 |
commit | 10f146ddc889c2300d69198eeedb1672b7f87022 (patch) | |
tree | b1f959279d2e56759b22fb979274da8fdec67be6 /src | |
parent | 3173358f76a5cf72b06077601f460f8d24863af6 (diff) | |
download | pulseaudio-10f146ddc889c2300d69198eeedb1672b7f87022.tar.gz |
util: /etc/machine-id should be tried first, the D-Bus only as fallback for legacy systems
Diffstat (limited to 'src')
-rw-r--r-- | src/pulsecore/core-util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index 2900e3cda..fe68965c5 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -2726,9 +2726,9 @@ char *pa_machine_id(void) { /* The returned value is supposed be some kind of ascii identifier * that is unique and stable across reboots. */ - /* First we try the D-Bus UUID, which is the best option we have, - * since it fits perfectly our needs and is not as volatile as the - * hostname which might be set from dhcp. */ + /* First we try the /etc/machine-id, which is the best option we + * have, since it fits perfectly our needs and is not as volatile + * as the hostname which might be set from dhcp. */ if ((f = pa_fopen_cloexec(PA_MACHINE_ID, "r")) || (f = pa_fopen_cloexec(PA_MACHINE_ID_FALLBACK, "r"))) { |