Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit12632d3

Browse files
committed
Add missing 3rd argument to open().
1 parent149008d commit12632d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎contrib/pgcrypto/random.c

Lines changed: 3 additions & 3 deletions
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
intfd;
8383
intres;
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
returndst;
9191
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp