Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable temporary file overwrite in cdb.make() api #2

Open
ludrao opened this issue Feb 8, 2017 · 0 comments
Open

Enable temporary file overwrite in cdb.make() api #2

ludrao opened this issue Feb 8, 2017 · 0 comments

Comments

@ludrao
Copy link

ludrao commented Feb 8, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant