diff options
author | Damien Miller <djm@mindrot.org> | 2011-05-20 19:02:47 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2011-05-20 19:02:47 +1000 |
commit | 814ace08751a80c3b965c06fdfc1c9ac3d7698ca (patch) | |
tree | 5cc0a8c1ecc49fc882a950d9b647f7c1d060d7b6 /authfd.c | |
parent | ec2eaa3daf7f5543d8619cec30c1d73268323d01 (diff) |
- OpenBSD CVS Sync
- djm@cvs.openbsd.org 2011/05/15 08:09:01
[authfd.c monitor.c serverloop.c]
use FD_CLOEXEC consistently; patch from zion AT x96.org
Diffstat (limited to 'authfd.c')
-rw-r--r-- | authfd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: authfd.c,v 1.84 2010/08/31 11:54:45 djm Exp $ */ | 1 | /* $OpenBSD: authfd.c,v 1.85 2011/05/15 08:09:01 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -110,7 +110,7 @@ ssh_get_authentication_socket(void) | |||
110 | return -1; | 110 | return -1; |
111 | 111 | ||
112 | /* close on exec */ | 112 | /* close on exec */ |
113 | if (fcntl(sock, F_SETFD, 1) == -1) { | 113 | if (fcntl(sock, F_SETFD, FD_CLOEXEC) == -1) { |
114 | close(sock); | 114 | close(sock); |
115 | return -1; | 115 | return -1; |
116 | } | 116 | } |