pulse-server: module-pipe-source: set error code when entity is not pipe

Previously, the code did not set any error code, leaving res = 0,
when the file existed but it wasn't a pipe. This resulted in no
status code being returned to the client.
This commit is contained in:
Barnabás Pőcze 2021-06-25 23:45:27 +02:00
parent 9076e3e80b
commit 8a61374592

View file

@ -337,7 +337,8 @@ struct module *create_module_pipe_source(struct impl *impl, const char *argument
}
if (!S_ISFIFO(st.st_mode)) {
pw_log_error("'%s' is not a FIFO.", filename);
res = -EEXIST;
pw_log_error("'%s' is not a FIFO", filename);
goto out;
}