[hackers] [slock] [PATCH] Refactor main()

From: FRIGN <dev_AT_frign.de>
Date: Mon, 22 Aug 2016 09:14:42 +0200

Good morning fellow hackers,

after discussing this with Markus we agreed that it is time for slock
to have a refactor so it benefits from all the best practices(tm) we
learned about in the last few years and worked out working on sbase and
other projects.

In the long run the target is to go through each function and very
strictly do error checks where necessary and also reduce global state
where it might be a problem. Given slock is suid, we don't want to take
any risks and provide as little attack surface as possible.

Besides stricter error checking this patch also improves the usage and
makes the code more readable by pulling in arg.h, which has proven to
be very useful in the last few years.

Please provide feedback on this patch and test it.



FRIGN <dev_AT_frign.de>
Received on Mon Aug 22 2016 - 09:14:42 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 22 2016 - 09:24:14 CEST