summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--lib/passfd.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e72ce70297..b4449103de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-07-30 Eric Blake <eblake@redhat.com>
+
+ passfd: fix comment on recvfd
+ * lib/passfd.c (recvfd): Fix comment.
+ Reported by Jann Horn <jannhorn@googlemail.com>.
+
2012-07-30 Jim Meyering <meyering@redhat.com>
maint.mk: avoid a sub-shell
diff --git a/lib/passfd.c b/lib/passfd.c
index 4fac68c45c..ddb82dabac 100644
--- a/lib/passfd.c
+++ b/lib/passfd.c
@@ -101,7 +101,7 @@ sendfd (int sock _GL_UNUSED, int fd _GL_UNUSED)
/* recvfd receives a file descriptor through the socket.
The flags are a bitmask, possibly including O_CLOEXEC (defined in <fcntl.h>).
- Return 0 on success, or -1 with errno set in case of error.
+ Return the fd on success, or -1 with errno set in case of error.
*/
int
recvfd (int sock, int flags)