WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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

@ludrao

Description

@ludrao

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions