John Hodge [Mon, 22 Aug 2011 11:41:25 +0000 (19:41 +0800)]
Client - Fixed scrolling code
John Hodge [Mon, 22 Aug 2011 10:58:40 +0000 (18:58 +0800)]
client - Fixed some bugs with long prices
John Hodge [Mon, 27 Jun 2011 13:54:40 +0000 (21:54 +0800)]
Set baud rate to 1200 for door code
John Hodge [Mon, 27 Jun 2011 09:27:49 +0000 (17:27 +0800)]
Changed door code to use direct serial instead of llogin
- The DECServer gave up the magic smoke on the weekend
John Hodge [Fri, 17 Jun 2011 14:24:08 +0000 (22:24 +0800)]
Manual page :)
John Hodge [Tue, 14 Jun 2011 15:42:29 +0000 (23:42 +0800)]
Client - Fix to possible infinite loop in ReadLine
- If the remote host closes, recv() returns 0, this was not checked
> Caused 100% CPU on motsugo when un in a backup script
John Hodge [Fri, 3 Jun 2011 08:52:47 +0000 (16:52 +0800)]
Renamed liability account
John Hodge [Fri, 20 May 2011 05:32:11 +0000 (13:32 +0800)]
Client - Documentation for `enumitems` (commented out)
John Hodge [Fri, 20 May 2011 05:29:17 +0000 (13:29 +0800)]
Server - Root behavior
- Disallowed heathred
- Disallowed root to use `dispense acct`
> Exception for new accounts (matches "treasurer: new user")
- Fixed username not being set for AUTOAUTH
John Hodge [Thu, 5 May 2011 06:04:58 +0000 (14:04 +0800)]
Fixed client error, added dead snack catch, fixing server io redirection
John Hodge [Wed, 4 May 2011 06:49:49 +0000 (14:49 +0800)]
Extra help info, fixed logging for dispense failures, possible fix for logging errors
John Hodge [Sun, 10 Apr 2011 09:43:08 +0000 (17:43 +0800)]
Added merlo to trusted list and changed default server to merlo
John Hodge [Sun, 10 Apr 2011 09:38:48 +0000 (17:38 +0800)]
[TPG] Fixes to bugs exposed during move
- Serial Input/Output flags were left unset
- Coke debug enabled
- Empty line detection added to slot status reads.
- Fixed compile issues in client (OpenSSL is no longer needed)
John Hodge [Sat, 9 Apr 2011 03:45:17 +0000 (11:45 +0800)]
Fixed bug with item selection (>= instead of > for price check)
John Hodge [Fri, 25 Mar 2011 06:35:32 +0000 (14:35 +0800)]
Multiple fixes
- Client fixed to pass error messages correctly
- Fiddling with client ReadLine (was infinite looping, should be fixed now)
- Fixed server to start the timer thread in the main process (not the parent)
- Added a hack to detect refund `dispense acct` messages and reject them
John Hodge [Mon, 21 Mar 2011 01:04:52 +0000 (09:04 +0800)]
Fixing some issues spotted by graham's run of clang's static analyser
John Hodge [Mon, 21 Mar 2011 00:50:24 +0000 (08:50 +0800)]
Client - Added a reason to user flag changes
John Hodge [Mon, 21 Mar 2011 00:33:26 +0000 (08:33 +0800)]
Fixing bugs and slight cleanup
- Fixed issue with the USER_FLAGS and USER_ADD not checking authentication
> They were relying on Bank_GetFlags, which returns -1 on error
- Changed 'donate' to its own destination account
- Updated client's --help output to show help for the current command
> E.g. `dispense user --help` will give help for th euser family of commands
John Hodge [Tue, 15 Mar 2011 05:24:57 +0000 (13:24 +0800)]
Fixed up daemonising implementation (now to test it)
John Hodge [Sun, 13 Mar 2011 11:42:55 +0000 (19:42 +0800)]
Misc changes, have flu so don't remember all of them
John Hodge [Mon, 7 Mar 2011 01:13:45 +0000 (09:13 +0800)]
Fixed not checking return value of recv()
John Hodge [Sat, 5 Mar 2011 08:16:23 +0000 (16:16 +0800)]
Fixing up logging (slot renames and gives)
John Hodge [Fri, 4 Mar 2011 09:58:33 +0000 (17:58 +0800)]
Hey, `dispense -s` implemented!
John Hodge [Fri, 4 Mar 2011 08:45:21 +0000 (16:45 +0800)]
Merge branch 'master' of ssh.ucc.asn.au:tpg/opendispense2
John Hodge [Fri, 4 Mar 2011 08:44:50 +0000 (16:44 +0800)]
Implementing item file editing (server-side implemented)
John Hodge [Fri, 4 Mar 2011 08:43:22 +0000 (16:43 +0800)]
Fixed non-numeric arguments prefixed by '-' being allowed
John Hodge [Fri, 4 Mar 2011 08:40:50 +0000 (16:40 +0800)]
Updating more return values, added commands to comments
John Hodge [Fri, 4 Mar 2011 08:40:31 +0000 (16:40 +0800)]
Fixing PID file behavior
John Hodge [Thu, 3 Mar 2011 14:53:04 +0000 (22:53 +0800)]
Impelemented REFUND command
John Hodge [Thu, 3 Mar 2011 13:32:34 +0000 (21:32 +0800)]
Removed debug from cokebank
John Hodge [Thu, 3 Mar 2011 13:31:57 +0000 (21:31 +0800)]
Fixed sleep (darn order of subtraction) :)
John Hodge [Thu, 3 Mar 2011 13:29:59 +0000 (21:29 +0800)]
Implementing `dispense refund`, slight bugfixes, removed password auth
- Password auth is currently unimplemented serverside, and was
confusing users.
John Hodge [Mon, 28 Feb 2011 03:03:11 +0000 (11:03 +0800)]
coke - Added a delay to coke dispense
John Hodge [Mon, 28 Feb 2011 03:02:50 +0000 (11:02 +0800)]
server - Ignored SIGPIPE (fixes crashes if the client quits unexpectedly)
John Hodge [Mon, 28 Feb 2011 03:02:02 +0000 (11:02 +0800)]
client - Bugfixes (-u silently failed, and dispensed as the actual user)
John Hodge [Fri, 25 Feb 2011 07:24:33 +0000 (15:24 +0800)]
After a rage with TRS, allowed `dispense acct` to take -ve, disabled new background code
John Hodge [Fri, 25 Feb 2011 01:03:22 +0000 (09:03 +0800)]
Fixed client returning 0 for error conditions (zero gives specifically)
John Hodge [Fri, 25 Feb 2011 00:42:47 +0000 (08:42 +0800)]
Fixing client (clipping item names, balance display), made server delete pidfile
John Hodge [Thu, 24 Feb 2011 12:55:13 +0000 (20:55 +0800)]
Implemented `dispense -c`, bound SIGTERM to clean exist, re-created the pidfile
John Hodge [Wed, 23 Feb 2011 13:33:43 +0000 (21:33 +0800)]
Commenting, fixed Ctrl-C not working, Fixed a segfault in the server,
Added Dispense_Transfer (not implemented as a command yet)
John Hodge [Wed, 23 Feb 2011 07:18:15 +0000 (15:18 +0800)]
Fixed up (most) return values
John Hodge [Wed, 23 Feb 2011 05:34:44 +0000 (13:34 +0800)]
Added `iteminfo` command to client, fixed docs
John Hodge [Tue, 22 Feb 2011 10:44:22 +0000 (18:44 +0800)]
Random fixes
John Hodge [Mon, 21 Feb 2011 14:15:18 +0000 (22:15 +0800)]
Fixed dispense give erroring on 3 arguments (and succeeding on 2)
John Hodge [Mon, 21 Feb 2011 14:00:23 +0000 (22:00 +0800)]
Fixes fixes fixes, init.d script
John Hodge [Mon, 21 Feb 2011 12:06:43 +0000 (20:06 +0800)]
Cleanups ready for distribution
- Added help message to the server
- Made door password a file instead of an option (keeps it out of ps)
John Hodge [Mon, 21 Feb 2011 11:23:54 +0000 (19:23 +0800)]
Cleaned up dispense command handling
John Hodge [Mon, 21 Feb 2011 11:20:12 +0000 (19:20 +0800)]
Bugfixes to coke handling, allowed give to internal
John Hodge [Mon, 21 Feb 2011 03:47:38 +0000 (11:47 +0800)]
Fixed bad coke status (slots not erroring if machine is unresponsive)
- Also removed a debug
John Hodge [Sun, 20 Feb 2011 10:50:02 +0000 (18:50 +0800)]
Fixed segfault in coke code, diabled debug
John Hodge [Sun, 20 Feb 2011 08:35:37 +0000 (16:35 +0800)]
Error check in Coke_int_UpdateSlotStatuses
John Hodge [Sun, 20 Feb 2011 08:25:26 +0000 (16:25 +0800)]
Merge branch 'master' of serenade.mutabah.net:opendispense2
Conflicts:
src/server/handler_coke.c
John Hodge [Sun, 20 Feb 2011 08:23:19 +0000 (16:23 +0800)]
Misc
John Hodge [Sun, 20 Feb 2011 08:22:07 +0000 (16:22 +0800)]
Fixed timeout for coke handler
John Hodge [Sun, 20 Feb 2011 07:58:04 +0000 (15:58 +0800)]
Merge branch 'master' of git://mutabah.net/opendispense2
John Hodge [Sun, 20 Feb 2011 07:57:22 +0000 (15:57 +0800)]
Random commit
John Hodge [Sun, 20 Feb 2011 07:19:55 +0000 (15:19 +0800)]
Merge branch 'master' of git://mutabah.net/opendispense2
John Hodge [Sun, 20 Feb 2011 07:19:34 +0000 (15:19 +0800)]
Removed debug message
John Hodge [Sun, 20 Feb 2011 07:19:13 +0000 (15:19 +0800)]
Cleaning up a little
John Hodge [Sun, 20 Feb 2011 07:13:13 +0000 (15:13 +0800)]
Merge branch 'master' of git://mutabah.net/opendispense2
John Hodge [Sun, 20 Feb 2011 07:12:38 +0000 (15:12 +0800)]
Added periodic thread (reloads item config, checks coke slots)
John Hodge [Sun, 20 Feb 2011 05:52:10 +0000 (13:52 +0800)]
Merge branch 'master' of git://mutabah.net/opendispense2
John Hodge [Sun, 20 Feb 2011 05:51:49 +0000 (13:51 +0800)]
Item statuses
John Hodge [Sun, 20 Feb 2011 04:58:07 +0000 (12:58 +0800)]
Merge branch 'master' of git://mutabah.net/opendispense2
John Hodge [Sun, 20 Feb 2011 04:57:16 +0000 (12:57 +0800)]
Removed server side spacers, made client do the work
John Hodge [Sun, 20 Feb 2011 04:02:54 +0000 (12:02 +0800)]
Merge branch 'master' of git://mutabah.net/opendispense2
John Hodge [Sun, 20 Feb 2011 04:01:17 +0000 (12:01 +0800)]
Adding support for spacers
John Hodge [Sun, 20 Feb 2011 03:22:57 +0000 (11:22 +0800)]
Added user and balance view to the ncurses gui
John Hodge [Sun, 20 Feb 2011 01:46:42 +0000 (09:46 +0800)]
Merge branch 'master' of git://mutabah.net/opendispense2
Conflicts:
src/server/server.c
John Hodge [Sun, 20 Feb 2011 01:45:40 +0000 (09:45 +0800)]
Committing local changes
John Hodge [Sun, 20 Feb 2011 01:42:20 +0000 (09:42 +0800)]
Implemented `dispense <item>`
- Also cleaned up some bugs in the server
John Hodge [Sat, 19 Feb 2011 13:37:26 +0000 (21:37 +0800)]
Merge branch 'master' of serenade.mutabah.net:opendispense2
John Hodge [Sat, 19 Feb 2011 13:32:09 +0000 (21:32 +0800)]
Cleaning up
- Fixed autoauth
- Removed debug manual auth hack
- Fixed server argument parsing
- Disabled negative
John Hodge [Sat, 19 Feb 2011 11:12:53 +0000 (19:12 +0800)]
Door handling fixed (for now)
John Hodge [Sat, 19 Feb 2011 10:23:34 +0000 (18:23 +0800)]
Made llogin use a pty instead of a pipe pair
John Hodge [Sat, 19 Feb 2011 10:03:36 +0000 (18:03 +0800)]
Fixed bug with llogin args
John Hodge [Sat, 19 Feb 2011 09:48:54 +0000 (17:48 +0800)]
Merge branch 'master' of git://mutabah.net/opendispense2
John Hodge [Sat, 19 Feb 2011 09:48:25 +0000 (17:48 +0800)]
Waiting for llogin?
John Hodge [Sat, 19 Feb 2011 09:26:24 +0000 (17:26 +0800)]
Merge branch 'master' of git://mutabah.net/opendispense2
John Hodge [Sat, 19 Feb 2011 09:26:06 +0000 (17:26 +0800)]
Debugging stdout from child
John Hodge [Sat, 19 Feb 2011 09:23:40 +0000 (17:23 +0800)]
Merge branch 'master' of git://mutabah.net/opendispense2
John Hodge [Sat, 19 Feb 2011 09:21:48 +0000 (17:21 +0800)]
Less crashy, hopefully more worky
John Hodge [Sat, 19 Feb 2011 09:06:51 +0000 (17:06 +0800)]
Merge branch 'master' of git://mutabah.net/opendispense2
John Hodge [Sat, 19 Feb 2011 09:06:07 +0000 (17:06 +0800)]
Let's try this again...
John Hodge [Sat, 19 Feb 2011 09:02:42 +0000 (17:02 +0800)]
Merge branch 'master' of git://mutabah.net/opendispense2
John Hodge [Sat, 19 Feb 2011 09:02:26 +0000 (17:02 +0800)]
Better door logging
John Hodge [Sat, 19 Feb 2011 08:51:54 +0000 (16:51 +0800)]
Merge branch 'master' of git://mutabah.net/opendispense2
John Hodge [Sat, 19 Feb 2011 08:51:38 +0000 (16:51 +0800)]
Fixed usage or execl
John Hodge [Sat, 19 Feb 2011 08:48:59 +0000 (16:48 +0800)]
Merge branch 'master' of git://mutabah.net/opendispense2
John Hodge [Sat, 19 Feb 2011 08:48:44 +0000 (16:48 +0800)]
Less crashy in door handler
John Hodge [Sat, 19 Feb 2011 08:09:02 +0000 (16:09 +0800)]
Merge branch 'master' of git://mutabah.net/opendispense2
John Hodge [Sat, 19 Feb 2011 08:08:51 +0000 (16:08 +0800)]
Debugging fixes to cokebank
John Hodge [Sat, 19 Feb 2011 08:07:50 +0000 (16:07 +0800)]
Door config settings (and some fixes to doorgroup reporting)
John Hodge [Sat, 19 Feb 2011 07:30:31 +0000 (15:30 +0800)]
Debugging door
John Hodge [Sat, 19 Feb 2011 07:17:41 +0000 (15:17 +0800)]
Multiple chanegs, see details
- Added option to hide an item from ENUM_ITEMS (prefix with '-')
- Added door server password support (command line)
- Non-enabled inotify support for item config
John Hodge [Sat, 19 Feb 2011 06:27:42 +0000 (14:27 +0800)]
Hacked to stop root dispenses
John Hodge [Sat, 19 Feb 2011 06:15:54 +0000 (14:15 +0800)]
Changed client not to keep a persistent connection when choosing items
John Hodge [Sat, 19 Feb 2011 06:12:27 +0000 (14:12 +0800)]
User timeouts, compile fixes
John Hodge [Sat, 19 Feb 2011 05:18:18 +0000 (13:18 +0800)]
Cleaning and fixing coke handler
- Send 'd7' before checking status
John Hodge [Sat, 19 Feb 2011 04:56:06 +0000 (12:56 +0800)]
Reset slot names on startup
UCC git Repository :: git.ucc.asn.au