diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-04-19 07:45:04 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-04-19 07:45:04 +0200 |
commit | 2f83a7294d0d0904d72839843a80531769525d59 (patch) | |
tree | 709774c38a94b5b99735121ce1e5979605fa0ce0 /inet | |
parent | Assume that accept4 is always available and works (diff) | |
download | glibc-2f83a7294d0d0904d72839843a80531769525d59.tar.gz glibc-2f83a7294d0d0904d72839843a80531769525d59.tar.bz2 glibc-2f83a7294d0d0904d72839843a80531769525d59.zip |
Create more sockets with SOCK_CLOEXEC [BZ #15722]
Diffstat (limited to 'inet')
-rw-r--r-- | inet/rcmd.c | 1 | ||||
-rw-r--r-- | inet/rexec.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/inet/rcmd.c b/inet/rcmd.c index b7cc7a82ba..e43d4af818 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. */ s = __socket(family, SOCK_STREAM, 0); if (s < 0) return -1; diff --git a/inet/rexec.c b/inet/rexec.c index 43fb67bcf2..82e15aef05 100644 --- a/inet/rexec.c +++ b/inet/rexec.c @@ -86,6 +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. */ s = __socket(res0->ai_family, res0->ai_socktype, 0); if (s < 0) { perror("rexec: socket"); |