From 7f4d7474bc9b613a5a6577819befb340e1093d67 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 30 Jul 2012 06:20:26 -0600 Subject: [PATCH] passfd: fix comment on recvfd * lib/passfd.c (recvfd): Fix comment. Reported by Jann Horn . Signed-off-by: Eric Blake --- ChangeLog | 6 ++++++ lib/passfd.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e72ce7029..b4449103d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-07-30 Eric Blake + + passfd: fix comment on recvfd + * lib/passfd.c (recvfd): Fix comment. + Reported by Jann Horn . + 2012-07-30 Jim Meyering maint.mk: avoid a sub-shell diff --git a/lib/passfd.c b/lib/passfd.c index 4fac68c45..ddb82daba 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 ). - 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) -- 2.11.0