From 79fe4bbf731272ea21f34bd2653673fe1a34e2c4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 17 Dec 2011 17:04:09 +0100 Subject: s3: Fix the clustering build ctdb_private.h already defines set_close_on_exec. Autobuild-User: Volker Lendecke Autobuild-Date: Sat Dec 17 18:41:39 CET 2011 on sn-devel-104 --- lib/util/genrand.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/util/genrand.c') diff --git a/lib/util/genrand.c b/lib/util/genrand.c index b8d3c78fa1..57884ef791 100644 --- a/lib/util/genrand.c +++ b/lib/util/genrand.c @@ -173,7 +173,7 @@ static int do_reseed(bool use_fd, int fd) if (fd == -1) { fd = open( "/dev/urandom", O_RDONLY,0); if (fd != -1) { - set_close_on_exec(fd); + smb_set_close_on_exec(fd); } } if (fd != -1 @@ -236,7 +236,7 @@ _PUBLIC_ void generate_random_buffer(uint8_t *out, int len) if (urand_fd == -1) { urand_fd = open( "/dev/urandom", O_RDONLY,0); if (urand_fd != -1) { - set_close_on_exec(urand_fd); + smb_set_close_on_exec(urand_fd); } } if(urand_fd != -1 && (read(urand_fd, out, len) == len)) { @@ -276,7 +276,7 @@ _PUBLIC_ void generate_secret_buffer(uint8_t *out, int len) if (urand_fd == -1) { urand_fd = open( "/dev/urandom", O_RDONLY,0); if (urand_fd != -1) { - set_close_on_exec(urand_fd); + smb_set_close_on_exec(urand_fd); } } if(urand_fd != -1 && (read(urand_fd, out, len) == len)) { -- cgit