aboutsummaryrefslogtreecommitdiff
path: root/duser.c
Commit message (Collapse)AuthorAgeFilesLines
* Removed include for <tre/regex.h>Joseph Hunkeler2012-05-251-1/+0
|
* Added cfg_open(), cfg_get_key(), and cfg_close()Joseph Hunkeler2012-05-251-40/+148
| | | | | | | | | | | | | | | | Added configuration file parsing, and removed constants (list_path, LOGFILE). CFG_PATH is defined in duser.h and will need to be changed before compiling. Removed basename in favor of libgen.h Log no longer reports DELETE ALL/SINGLE. Just DELETE. Fixed a ridiculous file truncation mistake in user_del(). Removed dependency on libtre... it sucks. Decided to go with libc searching -- seems to work better. (strfind()) We now validate strings passed as arguments to make sure they cannot cause arbitrary code execution, or accidental damage. (strval()) Added match column to list output. user_add was truncating files... fixed. CMD_FLAG_ADD will verify adding addresses to a mailing list. CMD_FLAG_MOD will display a temporary error (not done) If a corrupt record ever occurs it returns -1.
* Uniformed errors now.Joseph Hunkeler2012-05-251-11/+21
| | | | Trying to add the user_add stuff a little
* Fixed bug where (rec = NULL) caused user_del to flip out.Joseph Hunkeler2012-05-251-2/+20
| | | | Adding code to add a user to a list
* List deletion activeJoseph Hunkeler2012-05-251-3/+51
|
* Working delete-all command "delA"Joseph Hunkeler2012-05-251-149/+248
|
* Deletion code is now working. Original file is replaced with temp dataJoseph Hunkeler2012-05-251-56/+78
|
* Removing getoptJoseph Hunkeler2012-05-251-56/+157
|
* user_del is now capable of removing text from the temp files.Joseph Hunkeler2011-03-251-10/+13
| | | | still does not modify original files
* Need to work around writing as binary. Otherwise almost functional.Joseph Hunkeler2011-03-251-7/+9
| | | | find_in_file_ex needs tweaking for return value
* Adding user_del and testing temporary file usageJoseph Hunkeler2011-03-241-20/+203
|
* Initial commitJoseph Hunkeler2011-03-231-0/+158