diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-10-28 15:36:52 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2008-10-28 15:36:52 +0000 |
commit | 242bfefc41f4cc06dcff88c5bd143cc43719a73a (patch) | |
tree | 64f116afb728622e059b3291463dba988855c110 /misc | |
parent | 911b70e7193256a61ee2e1c827543fc08c2ede1e (diff) |
Updated to fedora-glibc-20081028T1533cvs/fedora-glibc-2_8_90-15
Diffstat (limited to 'misc')
-rw-r--r-- | misc/syslog.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 |