Demi Marie Obenour
bb4f274ae0
Make all fopen() calls use O_CLOEXEC
...
by adding "e" to the mode strings.
2022-09-23 15:19:01 +00:00
Lucas Holt
6a15a02ec2
Add support for MidnightBSD
...
Fix build issue
Fix build issue
2022-06-19 18:22:47 +00:00
Wim Taymans
4821c7ca2f
pulse-server: don't append "/pulse" to PULSE_RUNTIME_PATH
...
Fixes #2431
2022-06-09 17:06:07 +02:00
Wim Taymans
13c0cbb899
pulse-server: remove unused defines
2022-01-04 10:08:54 +01:00
Peter Hutterer
52a96bb602
modules: add log topics to module-protocol-pulse
...
This ends up using a nested namespace: mod.protocol-pulse for the module
itself, mod.protocol-pulse.foo for the various submodules and
extensions.
2021-09-28 09:35:39 +02:00
Wim Taymans
8e8cb34dc2
protocol: don't place sockets in $HOME
...
No server will put them there and no client will look for it there.
2021-07-27 10:57:31 +02:00
Barnabás Pőcze
b6405b761f
pulse-server: use sizeof() instead of hard-coding
...
Use `sizeof("/pid")` instead of hard-coding 5
in the condition.
2021-07-25 15:17:08 +02:00
Barnabás Pőcze
627ef37a77
pulse-server: use pid_t where appropriate
...
Instead of `int`, use the `pid_t` type to represent
process identifiers.
2021-07-25 15:17:08 +02:00
Barnabás Pőcze
2d27497045
pulse-server: use S_ISDIR()
...
Use the `S_ISDIR()` macro instead of `S_IFMT` and bitwise operations
to make the code simpler.
2021-07-25 15:17:08 +02:00
Barnabás Pőcze
e90a70fd49
pulse-server: check if a runtime directory could be found
...
Print an error message and return an error code if all
options have been exhausted without success.
2021-07-25 15:17:08 +02:00
Barnabás Pőcze
30e3884a75
pulse-server: add another check for the return value of snprintf()
...
In addition to checking if the resulting string would
be too long, also check whether or not snprintf failed.
2021-07-25 15:17:08 +02:00
Barnabás Pőcze
67b422fa18
pulse-server: fix potential use of dangling pointer
...
`getpwuid_r()` puts the strings pointed to from the returned
passwd struct into the specified buffer. Previously, that
buffer technically didn't live long enough to be usable
in the `snprintf()` call - although in practice this didn't
appear to be a problem. A particular version of GCC 11 generates
the same machine code for this function regardless whether
this patch is applied or not. Still, fix this by moving
the buffer to an outer scope.
2021-07-25 15:17:08 +02:00
Barnabás Pőcze
62832609c1
pulse-server: split out utils
...
Part of !776 .
2021-06-25 03:23:18 +02:00