2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00

client_msg_cb: make warning match the function that failed

This commit is contained in:
Todd C. Miller 2025-07-24 07:37:29 -06:00
parent f0e1a5ca38
commit f73162df35

View File

@ -1933,7 +1933,7 @@ client_msg_cb(int fd, int what, void *v)
{
const ssize_t n = write(fd, buf->data + buf->off, buf->len - buf->off);
if (n < 0) {
sudo_warn("send");
sudo_warn("write");
goto bad;
}
nwritten = (size_t)n;