com php-src: Update random.c: ext/standard/random.c

From: Date: Wed, 14 Oct 2015 19:16:59 +0000
Subject: com php-src: Update random.c: ext/standard/random.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89451@lists.php.net to get a copy of this message
Commit: f77cb7055dc117bbfda6347eed82522a0f41c68f Author: Scott <scott@paragonie.com> Wed, 14 Oct 2015 15:16:59 -0400 Parents: 844638918e4ac4e919b24e8f36f7b4a228f68387 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f77cb7055dc117bbfda6347eed82522a0f41c68f Log: Update random.c Ref: https://github.com/jedisct1/libsodium/commit/beb826f6fd173cff4473c8b7614033dbd4803500 Changed paths: M ext/standard/random.c Diff: diff --git a/ext/standard/random.c b/ext/standard/random.c index f46c4e0..9b6b1c8 100644 --- a/ext/standard/random.c +++ b/ext/standard/random.c @@ -141,8 +141,8 @@ static int php_random_bytes(void *bytes, size_t size) } /* Does the file exist and is it a character device? */ if (fstat(fd, &st) != 0 || -# ifdef S_IFNAM - !(S_IFNAM(st.st_mode) || S_ISCHR(st.st_mode)) +# ifdef S_ISNAM + !(S_ISNAM(st.st_mode) || S_ISCHR(st.st_mode)) # else !S_ISCHR(st.st_mode) # endif

« previous php.cvs (#89451) next »