aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmreorg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdbmreorg.c')
-rw-r--r--src/gdbmreorg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gdbmreorg.c b/src/gdbmreorg.c
index 5fc0d68..cc2a929 100644
--- a/src/gdbmreorg.c
+++ b/src/gdbmreorg.c
@@ -102,7 +102,8 @@ gdbm_reorganize (GDBM_FILE dbf)
new_name[len] = '#';
/* Open the new database. */
- new_dbf = gdbm_open (new_name, dbf->header->block_size, GDBM_WRCREAT,
+ new_dbf = gdbm_open (new_name, dbf->header->block_size,
+ GDBM_WRCREAT | (dbf->cloexec ? GDBM_CLOEXEC : 0),
fileinfo.st_mode, dbf->fatal_err);
if (new_dbf == NULL)

Return to:

Send suggestions and report system problems to the System administrator.