git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 149008d)
Add missing 3rd argument to open().
Thu, 8 Jun 2006 03:29:30 +0000 (03:29 +0000)
Thu, 8 Jun 2006 03:29:30 +0000 (03:29 +0000)

diff --git a/contrib/pgcrypto/random.c b/contrib/pgcrypto/random.c
index ad2077244a7c4d1f3d093c19f161424f5d643381..b22e029d2c6eb74879e617d6536717470d08b118 100644 (file)
--- 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;
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /