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

lock access to userstocreate.txt from submit.php #4

Open
nanch opened this issue Sep 24, 2012 · 1 comment
Open

lock access to userstocreate.txt from submit.php #4

nanch opened this issue Sep 24, 2012 · 1 comment
Labels

Comments

@nanch
Copy link
Owner

nanch commented Sep 24, 2012

writing to userstocreate.txt is not atomic and should be.

use a file lock (userstocreate.txt.lock) to guarantee that there is only one writer to the file at any given time.

reference: http://news.ycombinator.com/item?id=4561336

@nanch
Copy link
Owner Author

nanch commented Nov 11, 2012

migrate createdusers.log and userstocreate.txt to sqlite3 and python scripts

this will add support for atomic operations, but will also add sqlite3 and python as dependencies

Database file: /usr/local/etc/tarbackup/db/tarbackup.db

createdusers.log will be migrated to table: Users

Users: Id, Name, Password, Email, Created

userstocreate.txt will be migrated to table: UsersToCreate

UsersToCreate: Id, Name, Password, Email, Created

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

No branches or pull requests

1 participant