journal-remote: fix error number confusion
See: https://lists.freedesktop.org/archives/systemd-devel/2026-February/051924.html
This commit is contained in:
committed by
Yu Watanabe
parent
503442817a
commit
8b3d3d6d67
@@ -68,9 +68,7 @@ int mhd_respondf_internal(
|
||||
assert(connection);
|
||||
assert(format);
|
||||
|
||||
if (error < 0)
|
||||
error = -error;
|
||||
errno = -error;
|
||||
errno = ERRNO_VALUE(error);
|
||||
va_start(ap, format);
|
||||
r = vasprintf(&m, format, ap);
|
||||
va_end(ap);
|
||||
|
||||
Reference in New Issue
Block a user