From 12632d3c316f116961412aa7d76dc110d299c230 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 8 Jun 2006 03:29:30 +0000 Subject: [PATCH] Add missing 3rd argument to open(). --- contrib/pgcrypto/random.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/pgcrypto/random.c b/contrib/pgcrypto/random.c index ad2077244a..b22e029d2c 100644 --- a/contrib/pgcrypto/random.c +++ b/contrib/pgcrypto/random.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $PostgreSQL: pgsql/contrib/pgcrypto/random.c,v 1.16 2005/10/15 02:49:06 momjian Exp $ + * $PostgreSQL: pgsql/contrib/pgcrypto/random.c,v 1.17 2006/06/08 03:29:30 momjian Exp $ */ #include "postgres.h" @@ -82,10 +82,10 @@ try_dev_random(uint8 *dst) int fd; int res; - fd = open("/dev/urandom", O_RDONLY); + fd = open("/dev/urandom", O_RDONLY, 0); if (fd == -1) { - fd = open("/dev/random", O_RDONLY); + fd = open("/dev/random", O_RDONLY, 0); if (fd == -1) return dst; } -- 2.40.0