From 538a7ae703ce1c02b6d6d4e8f730947c839bd7ee Mon Sep 17 00:00:00 2001 From: Petr Jelinek Date: Tue, 30 Jun 2015 14:53:37 +0200 Subject: [PATCH] bdr_init_copy: O_CREAT requires 3 param open() --- bdr_init_copy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bdr_init_copy.c b/bdr_init_copy.c index b7892732aa..a4c31f6336 100644 --- a/bdr_init_copy.c +++ b/bdr_init_copy.c @@ -314,7 +314,8 @@ main(int argc, char **argv) if (!local_connstr || !strlen(local_connstr)) die(_("Local connection must be specified.\n")); - logfd = open("bdr_init_copy_postgres.log", O_CREAT|O_RDWR); + logfd = open("bdr_init_copy_postgres.log", O_CREAT | O_RDWR, + S_IRUSR | S_IWUSR); if (logfd == -1) { die(_("Creating bdr_init_copy_postgres.log failed: %s"), -- 2.39.5