Commit 932dbee786f1c1497e07a16ada6e3dbb755fdd08

Stefan Sperling 2021-05-19T13:58:22

fix wrong function name in error message; pointed out by Mikolaj Kucharski

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/privsep.c b/lib/privsep.c
index 9722912..61891c5 100644
--- a/lib/privsep.c
+++ b/lib/privsep.c
@@ -77,7 +77,7 @@ poll_fd(int fd, int events, int timeout)
 
 	n = ppoll(pfd, 1, timeout == INFTIM ? NULL : &ts, &sigset);
 	if (n == -1)
-		return got_error_from_errno("poll");
+		return got_error_from_errno("ppoll");
 	if (n == 0)
 		return got_error(GOT_ERR_TIMEOUT);
 	if (pfd[0].revents & (POLLERR | POLLNVAL))