passfd: fix comment on recvfd
authorEric Blake <eblake@redhat.com>
Mon, 30 Jul 2012 12:20:26 +0000 (06:20 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 30 Jul 2012 12:21:07 +0000 (06:21 -0600)
* lib/passfd.c (recvfd): Fix comment.
Reported by Jann Horn <jannhorn@googlemail.com>.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/passfd.c

index e72ce70..b444910 100644 (file)
--- 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
index 4fac68c..ddb82da 100644 (file)
@@ -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)