aboutsummaryrefslogtreecommitdiffstats
path: root/libibex/mkindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'libibex/mkindex.c')
-rw-r--r--libibex/mkindex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libibex/mkindex.c b/libibex/mkindex.c
index 9d6841e90b..151dcecb2d 100644
--- a/libibex/mkindex.c
+++ b/libibex/mkindex.c
@@ -60,7 +60,7 @@ main (int argc, char **argv)
if (argc == 0)
usage ();
- ib = ibex_open (file, TRUE);
+ ib = ibex_open (file, O_CREAT|O_RDWR, 0600);
if (!ib) {
fprintf (stderr, "Couldn't open index file %s: %s\n",
file, strerror (errno));