- Truncate is so dangerous that dbiOpenDB() discarded it even if
set in configuration. How useful is that?
return 1;
oflags = (dbi->dbi_oeflags | dbi->dbi_oflags);
- oflags &= ~DB_TRUNCATE; /* XXX this is dangerous */
#if 0 /* XXX rpmdb: illegal flag combination specified to DB->open */
if ( dbi->dbi_mode & O_EXCL) oflags |= DB_EXCL;
oflags |= DB_CREATE;
dbi->dbi_oeflags |= DB_CREATE;
}
-#ifdef DANGEROUS
- if ( dbi->dbi_mode & O_TRUNC) oflags |= DB_TRUNCATE;
-#endif
/*
* Avoid incompatible DB_CREATE/DB_RDONLY flags on DBENV->open.
NULL, NULL },
{ "rdonly", 0,POPT_BIT_SET, &staticdbi.dbi_oflags, DB_RDONLY,
NULL, NULL },
- { "truncate", 0,POPT_BIT_SET, &staticdbi.dbi_oflags, DB_TRUNCATE,
- NULL, NULL },
{ "fcntl_locking",0,POPT_BIT_SET, &staticdbi.dbi_oflags, DB_FCNTL_LOCKING,
NULL, NULL },