Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 12632d3

Browse files
committed
Add missing 3rd argument to open().
1 parent 149008d commit 12632d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/pgcrypto/random.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2727
* SUCH DAMAGE.
2828
*
29-
* $PostgreSQL: pgsql/contrib/pgcrypto/random.c,v 1.16 2005/10/15 02:49:06 momjian Exp $
29+
* $PostgreSQL: pgsql/contrib/pgcrypto/random.c,v 1.17 2006/06/08 03:29:30 momjian Exp $
3030
*/
3131

3232
#include "postgres.h"
@@ -82,10 +82,10 @@ try_dev_random(uint8 *dst)
8282
int fd;
8383
int res;
8484

85-
fd = open("/dev/urandom", O_RDONLY);
85+
fd = open("/dev/urandom", O_RDONLY, 0);
8686
if (fd == -1)
8787
{
88-
fd = open("/dev/random", O_RDONLY);
88+
fd = open("/dev/random", O_RDONLY, 0);
8989
if (fd == -1)
9090
return dst;
9191
}

0 commit comments

Comments
 (0)