From: Florian Weimer <fweimer@redhat.com>
To: GNU C Library <libc-alpha@sourceware.org>
Subject: Re: [PATCH] Create more sockets with SOCK_CLOEXEC [BZ #15722]
Date: Wed, 19 Apr 2017 18:24:00 -0000 [thread overview]
Message-ID: <a9ac4aba-6990-cf95-44c1-220f49e0465b@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.20.1704191518320.28423@digraph.polyomino.org.uk>
[-- Attachment #1: Type: text/plain, Size: 504 bytes --]
On 04/19/2017 05:19 PM, Joseph Myers wrote:
> On Tue, 18 Apr 2017, Florian Weimer wrote:
>
>> diff --git a/inet/rcmd.c b/inet/rcmd.c
>> index b7cc7a8..e43d4af 100644
>> --- a/inet/rcmd.c
>> +++ b/inet/rcmd.c
>> @@ -383,6 +383,7 @@ rresvport_af (int *alport, sa_family_t family)
>> __set_errno (EAFNOSUPPORT);
>> return -1;
>> }
>> + /* NB: No SOCK_CLOXEC for backwards compatibility. */
>
> "CLOXEC" typo, repeated elsewhere in this patch.
Thanks, fixed with the attached patch.
Florian
[-- Attachment #2: cloexec.patch --]
[-- Type: text/x-patch, Size: 1048 bytes --]
rcmd/rexec: Fix typo in comment
2017-04-19 Florian Weimer <fweimer@redhat.com>
* inet/rcmd.c (rresvport_af): Fix typo in comment.
* inet/rexec.c (rexec_af): Likewise.
diff --git a/inet/rcmd.c b/inet/rcmd.c
index e43d4af..c285b9e 100644
--- a/inet/rcmd.c
+++ b/inet/rcmd.c
@@ -383,7 +383,7 @@ rresvport_af (int *alport, sa_family_t family)
__set_errno (EAFNOSUPPORT);
return -1;
}
- /* NB: No SOCK_CLOXEC for backwards compatibility. */
+ /* NB: No SOCK_CLOEXEC for backwards compatibility. */
s = __socket(family, SOCK_STREAM, 0);
if (s < 0)
return -1;
diff --git a/inet/rexec.c b/inet/rexec.c
index 82e15ae..bda5367 100644
--- a/inet/rexec.c
+++ b/inet/rexec.c
@@ -86,7 +86,7 @@ rexec_af (char **ahost, int rport, const char *name, const char *pass,
}
ruserpass(res0->ai_canonname, &name, &pass);
retry:
- /* NB: No SOCK_CLOXEC for backwards compatibility. */
+ /* NB: No SOCK_CLOEXEC for backwards compatibility. */
s = __socket(res0->ai_family, res0->ai_socktype, 0);
if (s < 0) {
perror("rexec: socket");
prev parent reply other threads:[~2017-04-19 18:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-18 18:41 Florian Weimer
2017-04-18 19:53 ` Adhemerval Zanella
2017-04-18 20:09 ` Florian Weimer
2017-04-18 20:28 ` Adhemerval Zanella
2017-04-19 15:19 ` Joseph Myers
2017-04-19 18:24 ` Florian Weimer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a9ac4aba-6990-cf95-44c1-220f49e0465b@redhat.com \
--to=fweimer@redhat.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).