From 208bc8367015221e38ffaef9fccbafd68e3fff48 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 22 Oct 2008 21:45:13 +0000 Subject: * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec initialization. --- misc/syslog.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'misc') diff --git a/misc/syslog.c b/misc/syslog.c index 8f84faf75c..90cd3bfa14 100644 --- a/misc/syslog.c +++ b/misc/syslog.c @@ -358,10 +358,11 @@ openlog_internal(const char *ident, int logstat, int logfac) # ifndef __ASSUME_SOCK_CLOEXEC if (__have_sock_cloexec == 0) __have_sock_cloexec - = (LogFile != -1 - || errno != EINVAL); + = ((LogFile != -1 + || errno != EINVAL) + ? 1 : -1); } -#endif +# endif #endif #ifndef __ASSUME_SOCK_CLOEXEC # ifdef SOCK_CLOEXEC -- cgit v1.2.1