aboutsummaryrefslogtreecommitdiff
path: root/duser.c
Commit message (Collapse)AuthorAgeFilesLines
* Partial autotools conversion to help out JoeAlan Brault2011-05-021-307/+0
|
* Utilizing static progname variable. Local variables removed from functions ↵Joseph Hunkeler2011-04-211-5/+12
| | | | that used it. Added version().
* Moved most functions into other source files.Joseph Hunkeler2011-04-201-590/+0
|
* cfg.c now depends on cfg.hJoseph Hunkeler2011-04-191-0/+1
| | | | | duser.c depends on cfg.h Removed cfg prototypes from duser.h
* GNU GPLv3 licensing added.testing-pre1cJoseph Hunkeler2011-04-081-0/+20
|
* Fixed Solaris 10 segfault. If list_path was null, snprintf would write bad ↵Joseph Hunkeler2011-04-081-58/+86
| | | | data into the filename. While loop in user_cmd() was removed because it was never used as intended.
* Debugging disabledJoseph Hunkeler2011-04-061-4/+8
| | | | Program name is now global
* Command line argument "new" addedtesting-pre1bJoseph Hunkeler2011-04-061-1/+69
| | | | user_new_list() function added
* Starting to port to Solaris 10... sigh.testing-pre1a-sol10Joseph Hunkeler2011-04-061-0/+18
|
* Removed include for <tre/regex.h>testing-pre1aJoseph Hunkeler2011-04-061-1/+0
|
* Added cfg_open(), cfg_get_key(), and cfg_close()Joseph Hunkeler2011-04-051-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 Hunkeler2011-04-041-11/+21
| | | | Trying to add the user_add stuff a little
* Fixed bug where (rec = NULL) caused user_del to flip out.Joseph Hunkeler2011-04-031-2/+20
| | | | Adding code to add a user to a list
* List deletion activeJoseph Hunkeler2011-03-301-3/+51
|
* Working delete-all command "delA"Joseph Hunkeler2011-03-301-149/+248
|
* Deletion code is now working. Original file is replaced with temp dataJoseph Hunkeler2011-03-281-56/+78
|
* Removing getopt and writing my own damn argument parser. I'm so sick of its ↵Joseph Hunkeler2011-03-271-56/+157
| | | | fucking insolant behavior.
* 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