From: Heimdal Developers Date: Wed, 19 Jun 2013 04:56:29 +0000 (-0400) Subject: Import of code from heimdal X-Git-Tag: upstream/1.8.0_pre1^2~1123 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0edef53073e153a4bdcfdf2518f136d924ec49f1;p=packages%2Fo%2Fopenafs.git Import of code from heimdal This commit updates the code imported from heimdal to dc87425f93bdd3d9c88be1a380ed5372980235bf (git2svn-syncpoint-master-290-gdc87425) Upstream changes are: Ben Kaduk (1): Always provide a usable PATH_MAX Jeffrey Hutzelman (1): hcrypto/rand-unix.c: Ignore write(2) result harder Nicolas Williams (1): Winsock connect returns WSAEWOULDBLOCK... Change-Id: I10a001a3a606c799f7b9ab7db42ecef4ad5a5c21 Reviewed-on: http://gerrit.openafs.org/9992 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk Reviewed-by: Derrick Brashear --- diff --git a/src/external/heimdal-last b/src/external/heimdal-last index 5a8fadd2b..e14bb3489 100644 --- a/src/external/heimdal-last +++ b/src/external/heimdal-last @@ -1 +1 @@ -66f4c441e9e0de68fbcf81763642779ac5c33631 +dc87425f93bdd3d9c88be1a380ed5372980235bf diff --git a/src/external/heimdal/hcrypto/rand-unix.c b/src/external/heimdal/hcrypto/rand-unix.c index c52155baa..b67cd6321 100644 --- a/src/external/heimdal/hcrypto/rand-unix.c +++ b/src/external/heimdal/hcrypto/rand-unix.c @@ -82,7 +82,8 @@ unix_seed(const void *indata, int size) if (fd < 0) return; - write(fd, indata, size); + if (write(fd, indata, size) != size) + ; /* don't care */ close(fd); } diff --git a/src/external/heimdal/roken/roken-common.h b/src/external/heimdal/roken/roken-common.h index 02122be49..06106d0d5 100644 --- a/src/external/heimdal/roken/roken-common.h +++ b/src/external/heimdal/roken/roken-common.h @@ -151,7 +151,11 @@ #endif /* !_WIN32 */ #ifndef PATH_MAX +#ifdef MAX_PATH #define PATH_MAX MAX_PATH +#else +#define PATH_MAX 4096 +#endif #endif #ifndef RETSIGTYPE diff --git a/src/external/heimdal/roken/roken.h.in b/src/external/heimdal/roken/roken.h.in index 82c973b77..52a786c75 100644 --- a/src/external/heimdal/roken/roken.h.in +++ b/src/external/heimdal/roken/roken.h.in @@ -1175,6 +1175,9 @@ int ROKEN_LIB_FUNCTION rk_socket(int, int, int); #ifndef EAFNOSUPPORT #define EAFNOSUPPORT 102 #endif +#ifndef EINPROGRESS +#define EINPROGRESS 112 +#endif #ifndef ENOTSOCK #define ENOTSOCK 128 #endif