lua-tinycdb icon indicating copy to clipboard operation
lua-tinycdb copied to clipboard

Enable temporary file overwrite in cdb.make() api

Open ludrao opened this issue 8 years ago • 0 comments

I use the standard lua os.tmpname() to give me a temporary file name to use for the cdb.make(). For security reason os.tmpname() does create en empty name (to prevent permission stealing in extreme cases) this make cdb.make() barely usable (I would have to remove the file before calling cdb.make())

Instead, if cdb.make would provide an option third argument that enable overwrite, it would make the api much more usable.

I send a pull request for that change.

ludrao avatar Feb 08 '17 09:02 ludrao