diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-11-09 01:04:17 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-11-09 01:04:17 +0000 |
commit | 3fcd7a433c1422c52804181de6a719a527830326 (patch) | |
tree | f4d6058e99fcaf0dfae1ea3b6d5e77334178df3d | |
parent | 3916a66a87a639a1733cfe4fb33f32904eda7f59 (diff) |
use fqdn in module-x11-publish as well
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@278 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r-- | polyp/module-x11-publish.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/polyp/module-x11-publish.c b/polyp/module-x11-publish.c index a488f6d5..c862fe3a 100644 --- a/polyp/module-x11-publish.c +++ b/polyp/module-x11-publish.c @@ -147,8 +147,11 @@ int pa__init(struct pa_core *c, struct pa_module*m) { u->display = pa_x11_wrapper_get_display(u->x11_wrapper); - pa_get_host_name(hn, sizeof(hn)); - pa_get_user_name(un, sizeof(un)); + if (!pa_get_fqdn(hn, sizeof(hn))) + goto fail; + + if (!pa_get_user_name(un, sizeof(un))) + goto fail; u->id = pa_sprintf_malloc("%s@%s/%u", un, hn, (unsigned) getpid()); |