In my opinion, the lock (slock) shall be remain very light based a very minimum of x11, in other words just on the x11 minimum of x11 layer functions/libs....
slock might be a minimal x11 lock, without any additional features. Is actually getpwuid() really needed? slock function might be to simply lock x11 in the most simple manner. Furthermore, the user can anytime pkill slock from another tty. 2013/11/14 sin <s...@2f30.org>: > On Wed, Nov 13, 2013 at 09:32:44PM +0100, patrick295767 patrick295767 wrote: >> Hi, >> >> Slock is a nice application. However I would go on simpler >> even to avoid the suid/sgid check. > > On a side note for the other check on getpwuid() we should really > be setting errno to zero before the call and checking that as well > after the call. >