mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
* Look for M4 in configure.ac
* Share auth cookies in module-tunnel.c, module-x11-publish.c and native-protocol.c * disable TCP_NODELAY * publish auth cookie in module-x11-publish git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@274 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
5844a33f0b
commit
b55923a8d3
15 changed files with 292 additions and 26 deletions
|
|
@ -145,17 +145,17 @@ int pa_authkey_load(const char *path, void *data, size_t length) {
|
|||
}
|
||||
|
||||
int pa_authkey_load_from_home(const char *fn, void *data, size_t length) {
|
||||
char *home;
|
||||
char path[PATH_MAX];
|
||||
const char *p;
|
||||
|
||||
assert(fn && data && length);
|
||||
|
||||
if (fn[0] != '/') {
|
||||
if (!(home = getenv("HOME")))
|
||||
char homedir[PATH_MAX];
|
||||
if (!pa_get_home_dir(homedir, sizeof(homedir)))
|
||||
return -2;
|
||||
|
||||
snprintf(path, sizeof(path), "%s/%s", home, fn);
|
||||
snprintf(path, sizeof(path), "%s/%s", homedir, fn);
|
||||
p = path;
|
||||
} else
|
||||
p = fn;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue