GNU bug report logs - #12087
Wrong comment in passfd.c?

Previous Next

Package: coreutils;

Reported by: Jann Horn <jannhorn <at> googlemail.com>

Date: Sun, 29 Jul 2012 22:55:01 UTC

Severity: normal

Tags: fixed

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jann Horn <jannhorn <at> googlemail.com>
To: 12087 <at> debbugs.gnu.org
Subject: bug#12087: Wrong comment in passfd.c?
Date: Sun, 29 Jul 2012 22:14:15 +0200
[Message part 1 (text/plain, inline)]
Hello,
it looks to me like this comment is wrong:

gnulib/lib/passfd.c:
101 /* recvfd receives a file descriptor through the socket.
102    The flags are a bitmask, possibly including O_CLOEXEC (defined in <fcntl.h>).
103 
104    Return 0 on success, or -1 with errno set in case of error.
105 */
106 int
107 recvfd (int sock, int flags)

It returns the fd, not 0, on success, right?

Jann
[Message part 2 (application/pgp-signature, inline)]

This bug report was last modified 12 years and 297 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.