linux fixes
[tedtools.git] / flatdb.c
index 10e1a00..56d78eb 100644 (file)
--- a/flatdb.c
+++ b/flatdb.c
@@ -126,7 +126,7 @@ FDBOpen(FDB *db, char *file, int readonly) {
                        return FDB_ERROR;
                } 
        } else {
-               db->fd = open(file, O_CREAT | O_RDWR);
+               db->fd = open(file, O_CREAT | O_RDWR, 0666);
                if ( db->fd < 0 ) {
                        tlog(TL_CRIT,"FDBOpen: open failed: %s",strerror(errno));
                        return FDB_ERROR;